diff --git a/src/index.js b/src/index.js index 7029704..54aae3e 100644 --- a/src/index.js +++ b/src/index.js @@ -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');