dasdsa
This commit is contained in:
parent
2072c944cd
commit
23a3af3c2e
12 changed files with 70 additions and 55 deletions
|
@ -1337,7 +1337,7 @@ var PusherPushNotifications = (function (exports) {
|
|||
|
||||
if (serviceWorkerRegistration) {
|
||||
var serviceWorkerScope = serviceWorkerRegistration.scope;
|
||||
var currentURL = window.location.href;
|
||||
var currentURL = location.href;
|
||||
var scopeMatchesCurrentPage = currentURL.startsWith(serviceWorkerScope);
|
||||
|
||||
if (!scopeMatchesCurrentPage) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue