@social-mail/social-mail-client 1.0.126 → 1.0.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +7 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -69,11 +69,13 @@
69
69
 
70
70
  try {
71
71
  if ('serviceWorker' in navigator) {
72
- navigator.serviceWorker.register("/pwa/service-worker.js").then(function (registration) {
73
- console.log('ServiceWorker registration successful with scope: ', registration.scope);
74
- }).catch(function (err) {
75
- console.log('ServiceWorker registration failed: ', err);
76
- });
72
+ navigator.serviceWorker.register("/pwa/service-worker.js")
73
+ .then(function (registration) {
74
+ console.log('ServiceWorker registration successful with scope: ', registration.scope);
75
+ registration.update().then(() => {
76
+ console.log("Registration updated");
77
+ }).catch(console.error);
78
+ }).catch(console.error);
77
79
  }
78
80
  }
79
81
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.0.126",
3
+ "version": "1.0.128",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {