File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ async function loadApp() {
272272 const isIos = / i P a d | i P h o n e | i P o d / . test ( navigator . userAgent ) && ! window . MSStream ;
273273 const isAndroid = / A n d r o i d / . test ( navigator . userAgent ) ;
274274 if ( isIos || isAndroid ) {
275- if ( ! document . cookie . split ( ';' ) . some ( ( c ) => c . startsWith ( 'mobile_redirect_to_guide' ) ) ) {
275+ if ( document . cookie . indexOf ( "riot_mobile_redirect_to_guide=false" ) === - 1 ) {
276276 window . location = "mobile_guide/" ;
277277 return ;
278278 }
Original file line number Diff line number Diff line change 11import { getVectorConfig } from '../getconfig' ;
22
33function onBackToRiotClick ( ) {
4- document . cookie = 'mobile_redirect_to_guide=false;path=/' ;
4+ // Cookie should expire in 4 hours
5+ document . cookie = 'riot_mobile_redirect_to_guide=false;path=/;max-age=14400' ;
56 window . location . href = '../' ;
67}
78
You can’t perform that action at this time.
0 commit comments