This commit is contained in:
Aevann1 2022-01-22 00:48:06 +02:00
parent 2072c944cd
commit 23a3af3c2e
12 changed files with 70 additions and 55 deletions

View file

@ -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) {