@social-mail/social-mail-client 1.0.121 → 1.0.122

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.
@@ -53,4 +53,9 @@ self.addEventListener('fetch', function (event) {
53
53
  );
54
54
  })
55
55
  );
56
+ });
57
+
58
+ self.addEventListener("push", function(event) {
59
+ const { title } = JSON.parse(event.data.text());
60
+ event.waitUntil(self.registration.showNotification(title));
56
61
  });
@@ -13827,6 +13827,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
13827
13827
  auth
13828
13828
  }
13829
13829
  };
13830
+ console.log(json);
13830
13831
  const session = yield this.entityService.query(LoginSession, "currentUser").firstOrDefault();
13831
13832
  session.deviceToken = JSON.stringify(json);
13832
13833
  session.deviceTokenType = "WebPush";