You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.
cc @gauntface
Type of Issue
Content Request / Content Issue
Details....
I am opening (or refocusing) page on notification click as described here.
If the service worker is registered at the domain root, the Jeff Posnick's method does the trick:
However, if the service worker is scoped, the
new URL
will omit the subdirectory completly, because its second argument isbase
It can be solved by gluing
self.registration.scope
already available in the service worker andpage
:Can such information be useful in the context of the web push book? Should I issue a PR?
Thanks for great tutorials @gauntface!
The text was updated successfully, but these errors were encountered: