stupid dumb patch because guh rammerhead
This commit is contained in:
parent
ad0f40e638
commit
0dcaace2aa
1 changed files with 6 additions and 1 deletions
|
|
@ -41,7 +41,12 @@
|
||||||
// Now save it in a cookie that expires in 72 hours.
|
// Now save it in a cookie that expires in 72 hours.
|
||||||
document.cookie = `rammerhead-session=${sessionID}; max-age=${60 * 60 * 72}; path=/`;
|
document.cookie = `rammerhead-session=${sessionID}; max-age=${60 * 60 * 72}; path=/`;
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
iframe.src = `https://aluu.xyz/${getCookie("rammerhead-session")}/${url}`;
|
iframe.src = `https://aluu.xyz/${getCookie("rammerhead-session")}/${url}`;
|
||||||
|
} catch {
|
||||||
|
window.open(`https://aluu.xyz/${getCookie("rammerhead-session")}/${url}`);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Default to UV
|
// Default to UV
|
||||||
iframe.src = window.__uv$config.prefix + window.__uv$config.encodeUrl(url);
|
iframe.src = window.__uv$config.prefix + window.__uv$config.encodeUrl(url);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue