dispatch urlchange event on client creation

This commit is contained in:
Percs 2025-03-04 12:25:19 -06:00
parent 6e451eee7f
commit fd346e8c6d
8 changed files with 268 additions and 265 deletions

View file

@ -207,15 +207,6 @@ function BrowserApp() {
if (!e.url) return;
this.url = e.url;
});
frame.frame.addEventListener("load", () => {
let url = frame.frame.contentWindow.location.href;
if (!url) return;
if (url === "about:blank") return;
this.url = $scramjet.codec.decode(
url.substring((location.href + "/scramjet").length)
);
});
const handleSubmit = () => {
this.url = this.url.trim();