mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
dispatch urlchange event on client creation
This commit is contained in:
parent
6e451eee7f
commit
fd346e8c6d
8 changed files with 268 additions and 265 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue