mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix login issue with macOS #1257
This commit is contained in:
parent
0263fb021d
commit
e8b4b0e8a7
@ -433,7 +433,11 @@ define([
|
||||
};
|
||||
|
||||
funcs.setLoginRedirect = function (page) {
|
||||
ctx.sframeChan.query('EV_SET_LOGIN_REDIRECT', page);
|
||||
// We have to logout before redirecting because otherwise Safari might keep
|
||||
// the guest SharedWorker alive
|
||||
funcs.logout(() => {
|
||||
ctx.sframeChan.event('EV_SET_LOGIN_REDIRECT', page);
|
||||
});
|
||||
};
|
||||
|
||||
funcs.isPresentUrl = function (cb) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user