Skip to content

best way to save what you love

web/Omnibox: prevent paste button spamming

wukko8ebde3919704
diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte
index 3cd09beb..327aeea3 100644
--- a/web/src/components/save/Omnibox.svelte
+++ b/web/src/components/save/Omnibox.svelte
@@ -53,6 +53,10 @@
}
const pasteClipboard = () => {
+ if (isDisabled || $dialogs.length > 0) {
+ return;
+ }
+
navigator.clipboard.readText().then(async (text) => {
let matchLink = text.match(/https:\/\/[^\s]+/g);
if (matchLink) {