web/Omnibox: add haptic feedback to the paste button

This commit is contained in:
wukko 2025-03-05 22:04:50 +06:00
parent 698905db2e
commit bf0b9f55e5
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -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;