web/Omnibox: prevent paste button spamming

This commit is contained in:
wukko 2024-07-16 22:17:51 +06:00
parent 504dfdb995
commit 8ebde39197
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

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