@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.
- package/dist/admin/AdminAppIndex.pack.js +4 -9
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/services/WebPushService.d.ts.map +1 -1
- package/dist/services/WebPushService.js +4 -9
- package/dist/services/WebPushService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +4 -9
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/services/WebPushService.ts +4 -9
|
@@ -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
|
-
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
|
|
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);
|