firefox clipboard fix
This commit is contained in:
@@ -21,7 +21,7 @@ const error = ref(false)
|
|||||||
|
|
||||||
navigator.permissions.query({name: "clipboard-write"}).then((permission) => {
|
navigator.permissions.query({name: "clipboard-write"}).then((permission) => {
|
||||||
permitted.value = permission.state === "granted" || permission.state === "prompt"
|
permitted.value = permission.state === "granted" || permission.state === "prompt"
|
||||||
})
|
}).catch(()=>null)
|
||||||
|
|
||||||
function copy() {
|
function copy() {
|
||||||
if (!copied.value) {
|
if (!copied.value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user