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 | fe09eae6599c93d8d5bf0a398d11897508e2f1a4 (patch) | |
| tree | 61b04387ecaf3d1acdcae66ead848994e45fdddc /src/routes/(app) | |
| parent | 6aa43aaaa1bca2e925f32b487dea6cc1b18fdf79 (diff) | |
| download | coinos-ui-fe09eae6599c93d8d5bf0a398d11897508e2f1a4.tar.gz coinos-ui-fe09eae6599c93d8d5bf0a398d11897508e2f1a4.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, |
