Skip to content

Commit

Permalink
Handles the case when the identity proxy was already registered
Browse files Browse the repository at this point in the history
  • Loading branch information
jakefeasel committed Dec 8, 2021
1 parent 22ecd99 commit f22f4d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions appAuthHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@
},
registerIdentityProxy: function () {
return new Promise((function (resolve) {
// handle the case when the identity proxy was already registered
if (this.identityProxy) {
resolve();
return;
}

if (this.identityProxyPreference === "serviceWorker" && "serviceWorker" in navigator) {
var savedReg,tick;
var registerServiceWorker = (function() {
Expand Down
Loading

0 comments on commit f22f4d7

Please sign in to comment.