mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-30 06:24:25 +02:00
web/Omnibox: add haptic feedback to the paste button
This commit is contained in:
parent
698905db2e
commit
bf0b9f55e5
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user