Fix erasure of over18

This commit is contained in:
Condorra 2023-02-17 02:57:36 +11:00
parent edc3b45b74
commit 042c04b350

View File

@ -55,7 +55,11 @@ function connectTerm() {
});
}
function over18() {
declare global {
interface Window { over18: () => void; }
}
window.over18 = () => {
document.getElementById("overlay_over18").style.display = 'none';
isScreened = true;
window.localStorage['over18'] = true;
@ -71,5 +75,5 @@ if (params["source"] && params["source"] === "android") {
}
if (isScreened || window.localStorage['over18']) {
over18();
window.over18();
}