4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-12 02:05:51 +00:00

change this.url on refresh for dev mode

This commit is contained in:
Phillip 2023-07-21 22:22:21 +03:00
parent 6430900b2b
commit fb2648b542

View File

@ -161,7 +161,7 @@ class WebBrowser extends LitElement {
displayUrl = 'qortal://app/development' displayUrl = 'qortal://app/development'
} else { } else {
displayUrl = 'qortal://' + this.service + '/' + this.name displayUrl = 'qortal://' + this.service + '/' + this.name
if ( this.identifier && this.identifier != 'null' && this.identifier != 'default' ) { if (this.identifier && this.identifier != 'null' && this.identifier != 'default') {
displayUrl = displayUrl.concat('/' + this.identifier) displayUrl = displayUrl.concat('/' + this.identifier)
} }
if (this.path != null && this.path != '/') { if (this.path != null && this.path != '/') {
@ -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 : ''