Fix login issue with macOS #1257

This commit is contained in:
yflory 2023-09-28 17:32:53 +02:00
parent 0263fb021d
commit e8b4b0e8a7

View File

@ -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) {