We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc1a06 commit b33bbcdCopy full SHA for b33bbcd
test/e2e/index.js
@@ -22,7 +22,10 @@ $("[data-action=setup]")
22
});
23
24
$("#registerForWebPush")
25
- .click(() => Leanplum.registerForWebPush().then(refreshWebPush));
+ .click(() => {
26
+ const swLocation = window.origin + window.pathname + "/sw.min.js";
27
+ Leanplum.registerForWebPush(swLocation).then(refreshWebPush);
28
+ });
29
30
$("#unregisterFromWebPush")
31
.click(() => Leanplum.unregisterFromWebPush().then(refreshWebPush));
0 commit comments