mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2025-07-13 15:52:44 +08:00
fix copy bug
This commit is contained in:
@ -37,7 +37,7 @@ globalThis.$$off = (tag, fn) => {
|
||||
globalThis.$$copy = async text => {
|
||||
const result = await navigator.permissions.query({ name: "clipboard-write" })
|
||||
if (result.state == "granted" || result.state == "prompt") {
|
||||
navigator.clipboard.writeText(data)
|
||||
navigator.clipboard.writeText(text)
|
||||
return;
|
||||
}
|
||||
const input = document.createElement('input');
|
||||
|
Reference in New Issue
Block a user