Use a different cookie to expire any cookies people may already have
We also check for a specific value in case people set it to `true` for some reason.
This commit is contained in:
parent
0d2668f2b1
commit
b72ae197e5
2 changed files with 2 additions and 2 deletions
|
@ -272,7 +272,7 @@ async function loadApp() {
|
|||
const isIos = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
||||
const isAndroid = /Android/.test(navigator.userAgent);
|
||||
if (isIos || isAndroid) {
|
||||
if (!document.cookie.split(';').some((c) => c.startsWith('mobile_redirect_to_guide'))) {
|
||||
if (document.cookie.indexOf("riot_mobile_redirect_to_guide=false") === -1) {
|
||||
window.location = "mobile_guide/";
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue