Skip to content

Commit

Permalink
Abort bunker on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Staab committed Nov 12, 2024
1 parent af013a7 commit 5eae580
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/views/Login.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
let signerApps: AppInfo[] = []
let abortController: AbortController
onMount(async () => {
if (Capacitor.isNativePlatform()) {
signerApps = await getNip55()
Expand All @@ -60,10 +58,7 @@
you to own your social identity.
</p>
</div>
<div
class="relative flex flex-col gap-4"
class:opacity-75={abortController}
class:cursor-events-none={abortController}>
<div class="relative flex flex-col gap-4">
{#if getNip07()}
<Anchor button tall accent on:click={useExtension}>
<i class="fa fa-puzzle-piece" /> Use Browser Extension
Expand Down
5 changes: 5 additions & 0 deletions src/app/views/LoginBunker.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import {onDestroy} from "svelte"
import {Nip46Broker} from "@welshman/signer"
import {addSession, nip46Perms} from "@welshman/app"
import {isKeyValid} from "src/util/nostr"
Expand Down Expand Up @@ -62,6 +63,10 @@
})
}
})
onDestroy(() => {
abortController.abort()
})
</script>

<FlexColumn class="max-w-md text-center">
Expand Down

0 comments on commit 5eae580

Please sign in to comment.