mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-12 22:00:02 -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 url: string;
|
||||
let url: string = "http://google.com";
|
||||
let proxyIframe: HTMLIFrameElement;
|
||||
|
||||
let rtcState = "";
|
||||
|
@ -172,11 +172,14 @@
|
|||
}
|
||||
function frameLoad() {
|
||||
if (!import.meta.env.VITE_ADRIFT_SINGLEFILE) {
|
||||
const location = proxyIframe.contentDocument?.location.href;
|
||||
if (location && location != "about:blank") {
|
||||
url = __uv$config.decodeUrl(
|
||||
proxyIframe.contentDocument?.location.href.replace(/.*\//g, "")
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
(window as any).bare = new BareClient();
|
||||
(window as any).myWsTest = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue