✌️
This commit is contained in:
parent
6e8caf7966
commit
5ca4aefff4
3 changed files with 5 additions and 6 deletions
|
|
@ -173,8 +173,10 @@ fetchInstance().then(() => {
|
|||
// Init service worker
|
||||
if (instance.swPublickey &&
|
||||
('serviceWorker' in navigator) &&
|
||||
('PushManager' in window) && $i && $i.token
|
||||
) {
|
||||
('PushManager' in window) &&
|
||||
$i && $i.token) {
|
||||
navigator.serviceWorker.register(`/sw.js`);
|
||||
|
||||
navigator.serviceWorker.ready.then(registration => {
|
||||
registration.active?.postMessage({
|
||||
msg: 'initialize',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue