()
| 69 | root.appendChild(host); |
| 70 | |
| 71 | const render = (): void => { |
| 72 | const next = location.href.replace(/^https?:\/\//, "") || "about:blank"; |
| 73 | if (url.textContent !== next) url.textContent = next; |
| 74 | }; |
| 75 | render(); |
| 76 | |
| 77 | // SPA route changes don't reload the document, so re-read the URL on every |