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

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.
@@ -13781,20 +13781,15 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
13781
13781
  WebPushService = class WebPushService {
13782
13782
  register() {
13783
13783
  return __awaiter(this, void 0, void 0, function* () {
13784
- const r = yield navigator.serviceWorker.ready;
13785
- let s = yield r.pushManager.getSubscription();
13786
- if (!s) {
13787
- try {
13784
+ try {
13785
+ const r = yield navigator.serviceWorker.ready;
13786
+ let s = yield r.pushManager.getSubscription();
13787
+ if (!s) {
13788
13788
  s = yield this.createRegistration(r);
13789
13789
  if (!s) {
13790
13790
  return;
13791
13791
  }
13792
- } catch (error) {
13793
- console.error(error);
13794
- return;
13795
13792
  }
13796
- }
13797
- try {
13798
13793
  yield this.updateRegistration(s);
13799
13794
  } catch (error) {
13800
13795
  console.error(error);