diff --git a/lib/system-status.js b/lib/system-status.js index 1cb9163..6497771 100644 --- a/lib/system-status.js +++ b/lib/system-status.js @@ -71,15 +71,18 @@ customElements.define('system-status', class extends HTMLElement { this.statement = `export PATH="${BIN}":$PATH` this.stmtrx = new RegExp(`^export PATH="${BIN}":\\$PATH$`, 'm') this.shellProfiles = null - this.installed = this.#installed() - this.template = document.createElement('template') - this.template.innerHTML = ` + this.root = this.attachShadow({ mode: 'open' }) + this.#render() + } + + #render () { + this.shadowRoot.innerHTML = `
-Pear setup is nearly complete.
To finish installing Pear Runtime set your system path to ${BIN}${!isWin? ' or click the button bellow.' : '.'}
To finish installing Pear Runtime set your system path to
+${BIN}
${!isWin? ' or click the button.' : ''}
${!isWin ? '' : ''} ` }