Skip to content

best way to save what you love

web/Omnibox: automatically start saving after link prefill

wukko2c10ba7efa67
diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte
index 36138521..a1dd42e3 100644
--- a/web/src/components/save/Omnibox.svelte
+++ b/web/src/components/save/Omnibox.svelte
@@ -69,6 +69,11 @@
// clear hash and query to prevent bookmarking unwanted links
if (browser) goto("/", { replaceState: true });
+
+ // clear link prefill to avoid extra effects
+ linkPrefill = "";
+
+ savingHandler({ url: $link });
}
});