mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-13 06:10:01 -04:00
fix bad URL bar default on firefox
This commit is contained in:
parent
517d190aa1
commit
a49294de4f
1 changed files with 7 additions and 4 deletions
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
let selectedProxy = "ultraviolet";
|
let selectedProxy = "ultraviolet";
|
||||||
|
|
||||||
let url: string;
|
let url: string = "http://google.com";
|
||||||
let proxyIframe: HTMLIFrameElement;
|
let proxyIframe: HTMLIFrameElement;
|
||||||
|
|
||||||
let rtcState = "";
|
let rtcState = "";
|
||||||
|
@ -172,9 +172,12 @@
|
||||||
}
|
}
|
||||||
function frameLoad() {
|
function frameLoad() {
|
||||||
if (!import.meta.env.VITE_ADRIFT_SINGLEFILE) {
|
if (!import.meta.env.VITE_ADRIFT_SINGLEFILE) {
|
||||||
url = __uv$config.decodeUrl(
|
const location = proxyIframe.contentDocument?.location.href;
|
||||||
proxyIframe.contentDocument?.location.href.replace(/.*\//g, "")
|
if (location && location != "about:blank") {
|
||||||
);
|
url = __uv$config.decodeUrl(
|
||||||
|
proxyIframe.contentDocument?.location.href.replace(/.*\//g, "")
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue