2024-08-17 13:23:43 -06:00
|
|
|
function onload() {
|
2024-08-24 02:17:40 -06:00
|
|
|
if (!localStorage.getItem('chromeAccepted')) {
|
|
|
|
redirect()
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
acceptDisclaimer() {
|
|
|
|
sessionStorage.removeItem( 'chromeAccepted');
|
2024-08-17 13:23:43 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
function redirect() {
|
2024-08-20 19:18:23 -06:00
|
|
|
const chromium = /Chrome|Chromium|OPR|Opera|Edge|UC|QQ|Brave/.test(
|
|
|
|
navigator.userAgent
|
|
|
|
);
|
|
|
|
const disclaimer = `<div class="web-disclaimer">`;
|
|
|
|
if (chromium && screen.width >= 699) window.location.replace("/bsod");
|
|
|
|
if (chromium && screen.width <= 699) window.location.replace("/mobile-warn");
|
|
|
|
}
|