diff --git a/src/app/App.svelte b/src/app/App.svelte index dca76c03..7311cea9 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -40,11 +40,9 @@ $: style.textContent = `:root { ${getThemeVariables($theme)}; background: var(--gray-8); }` tryFunc(() => - (navigator.registerProtocolHandler as (scheme: string, handler: string, name: string) => void)( - "web+nostr", - `${location.origin}/%s`, - appName - ) + ( + navigator.registerProtocolHandler as (scheme: string, handler: string, name: string) => void + )?.("web+nostr", `${location.origin}/%s`, appName) ) const seenChallenges = new Set() diff --git a/src/app/ForegroundButtons.svelte b/src/app/ForegroundButtons.svelte index 8e289e3c..89b1a516 100644 --- a/src/app/ForegroundButtons.svelte +++ b/src/app/ForegroundButtons.svelte @@ -1,7 +1,7 @@ diff --git a/src/app/shared/Feed.svelte b/src/app/shared/Feed.svelte index ce6e25e1..4dd91c21 100644 --- a/src/app/shared/Feed.svelte +++ b/src/app/shared/Feed.svelte @@ -3,7 +3,7 @@ import {onMount, onDestroy} from "svelte" import {debounce} from "throttle-debounce" import {last, equals, partition, always, uniqBy, sortBy, prop} from "ramda" - import {fly} from "svelte/transition" + import {fly} from "src/util/transition" import {quantify} from "hurdak/lib/hurdak" import {fuzzy, createScroller, now, timedelta} from "src/util/misc" import {asDisplayEvent, noteKinds} from "src/util/nostr" diff --git a/src/app/shared/FeedControls.svelte b/src/app/shared/FeedControls.svelte index 04015626..1bbb467d 100644 --- a/src/app/shared/FeedControls.svelte +++ b/src/app/shared/FeedControls.svelte @@ -1,6 +1,6 @@