Fix erasure of over18
This commit is contained in:
parent
edc3b45b74
commit
042c04b350
@ -55,7 +55,11 @@ function connectTerm() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function over18() {
|
declare global {
|
||||||
|
interface Window { over18: () => void; }
|
||||||
|
}
|
||||||
|
|
||||||
|
window.over18 = () => {
|
||||||
document.getElementById("overlay_over18").style.display = 'none';
|
document.getElementById("overlay_over18").style.display = 'none';
|
||||||
isScreened = true;
|
isScreened = true;
|
||||||
window.localStorage['over18'] = true;
|
window.localStorage['over18'] = true;
|
||||||
@ -71,5 +75,5 @@ if (params["source"] && params["source"] === "android") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isScreened || window.localStorage['over18']) {
|
if (isScreened || window.localStorage['over18']) {
|
||||||
over18();
|
window.over18();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user