Catch for function not existing

This commit is contained in:
Kasper Rynning-Tønnesen
2018-10-23 12:03:28 +02:00
parent 00641806c8
commit 03f68d3131

View File

@@ -22,7 +22,9 @@ window.addEventListener("load", function() {
window.location.href = "https://accounts.google.com/o/oauth2/v2/auth?client_id=" + client_id + "&response_type=" + response + "&state=" + state + "&redirect_uri=" + redirect + "&scope=" + scope;
} else {
var query_parameters = getQueryHash(window.location.hash);
try {
window.opener.callback(query_parameters);
} catch(e) {}
}
});