mirror of
https://github.com/keeweb/keeweb.git
synced 2024-06-27 07:45:08 +02:00
fix #653: auto-closing tab when starting from link
(cherry picked from commit bcafbde
)
This commit is contained in:
parent
9defd2476d
commit
c1decbcd5a
|
@ -5,6 +5,10 @@ const AuthReceiver = {
|
|||
receive: function() {
|
||||
const opener = window.opener || window.parent;
|
||||
const message = this.urlArgsToMessage(window.location.href);
|
||||
const hasKeys = Object.keys(message).filter(key => key !== 'config').length > 0;
|
||||
if (!hasKeys) {
|
||||
return false;
|
||||
}
|
||||
if (FeatureDetector.isStandalone) {
|
||||
Storage[sessionStorage.authStorage].handleOAuthReturnMessage(message);
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user