mirror of
https://github.com/imputnet/cobalt.git
synced 2026-08-27 04:05:22 +00:00
web/Omnibox: add haptic feedback to the paste button
This commit is contained in:
parent
698905db2e
commit
bf0b9f55e5
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue