web/Omnibox: prevent paste button spamming

This commit is contained in:
wukko
2024-07-16 22:17:51 +06:00
parent 504dfdb995
commit 8ebde39197

View File

@@ -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) {