Skip to content

best way to save what you love

web/Omnibox: add haptic feedback to the paste button

wukkobf0b9f55e5d8
diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte
index c5c1de0e..c9a07167 100644
--- a/web/src/components/save/Omnibox.svelte
+++ b/web/src/components/save/Omnibox.svelte
@@ -10,6 +10,7 @@
import dialogs from "$lib/state/dialogs";
import { link } from "$lib/state/omnibox";
+ import { hapticSwitch } from "$lib/haptics";
import { updateSetting } from "$lib/state/settings";
import { savingHandler } from "$lib/api/saving-handler";
import { pasteLinkFromClipboard } from "$lib/clipboard";
@@ -66,6 +67,8 @@
return;
}
+ hapticSwitch();
+
const pastedData = await pasteLinkFromClipboard();
if (!pastedData) return;