Browse Source

change this.url on refresh for dev mode

qortal-ui-dev
Phillip 1 year ago
parent
commit
fb2648b542
  1. 2
      plugins/plugins/core/qdn/browser/browser.src.js

2
plugins/plugins/core/qdn/browser/browser.src.js

@ -2756,7 +2756,7 @@ class WebBrowser extends LitElement {
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node] const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node]
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port
if (this.dev === 'FRAMEWORK') { if (this.dev === 'FRAMEWORK') {
this.url = `${this.link}` this.url = `${this.link}?time=${new Date().getMilliseconds()}`
} else { } else {
this.url = `${nodeUrl}/render/${this.service}/${this.name}${this.path != null ? this.path : '' this.url = `${nodeUrl}/render/${this.service}/${this.name}${this.path != null ? this.path : ''
}?theme=${this.theme}&identifier=${this.identifier != null ? this.identifier : '' }?theme=${this.theme}&identifier=${this.identifier != null ? this.identifier : ''

Loading…
Cancel
Save