Skip to content

Commit 25d8973

Browse files
authored
e2e: fix SW URL (#79)
1 parent 5fb5023 commit 25d8973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (window.location.hostname === "leanplum.github.io") {
2626
scope = "/Leanplum-JavaScript-SDK/";
2727
}
2828
Leanplum.setWebPushOptions({
29-
serviceWorkerUrl: window.origin + window.pathname + "/sw.min.js",
29+
serviceWorkerUrl: window.origin + window.location.pathname + "/sw.min.js",
3030
scope
3131
})
3232

0 commit comments

Comments
 (0)