web/Omnibox: prevent paste button spamming
This commit is contained in:
parent
504dfdb995
commit
8ebde39197
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue