mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 18:55:58 +03:00
Expire mobile guide cookie after 24 hours
See https://github.com/vector-im/riot-web/issues/9360 This is to prevent it from always working. Cookies without an expiration are supposed to expire at the end of the session, however the nature of mobile browsers means that the session is unlikely to ever end.
This commit is contained in:
parent
958260d559
commit
b1c885a266
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
import {getVectorConfig} from '../getconfig';
|
||||
|
||||
function onBackToRiotClick() {
|
||||
document.cookie = 'mobile_redirect_to_guide=false;path=/';
|
||||
// Cookie should expire in 24 hours
|
||||
document.cookie = 'mobile_redirect_to_guide=false;path=/;max-age=86400';
|
||||
window.location.href = '../';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue