1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-21 07:06:39 +02:00

fix #653: auto-closing tab when starting from link

(cherry picked from commit bcafbde)
This commit is contained in:
antelle 2017-06-03 20:11:09 +02:00
parent 9defd2476d
commit c1decbcd5a

View File

@ -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;