diff options
| author | Adam Soltys <[email protected]> | 2024-10-22 00:04:17 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-22 00:04:17 -0700 |
| commit | 185700003d926256dbc45abfaeb64cfc48b9f88b (patch) | |
| tree | 61b04387ecaf3d1acdcae66ead848994e45fdddc /src/routes/(app) | |
| parent | c9a326829f552843ce5701a4ed5f4895399b9989 (diff) | |
| download | coinos-ui-185700003d926256dbc45abfaeb64cfc48b9f88b.tar.gz coinos-ui-185700003d926256dbc45abfaeb64cfc48b9f88b.zip | |
get push subscription
Diffstat (limited to 'src/routes/(app)')
| -rw-r--r-- | src/routes/(app)/settings/[...tab]/_pos.svelte | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/(app)/settings/[...tab]/_pos.svelte b/src/routes/(app)/settings/[...tab]/_pos.svelte index 37be6fe7..8cff4b1f 100644 --- a/src/routes/(app)/settings/[...tab]/_pos.svelte +++ b/src/routes/(app)/settings/[...tab]/_pos.svelte @@ -70,7 +70,7 @@ return post("/subscription/delete", { subscription }); } - if (push && permission === "prompt") { + if (push && permission !== "denied") { subscription = await pm.subscribe({ userVisibleOnly: true, applicationServerKey: PUBLIC_VAPID_PUBKEY, |
