- Add missing quotes

This commit is contained in:
ParticleG
2024-10-31 11:58:10 +08:00
parent 081b77f0e1
commit 7ae19b6431

View File

@@ -188,7 +188,7 @@ if JS then
JS.callJS(JS.stringFunc( JS.callJS(JS.stringFunc(
[[ [[
window.navigator.clipboard window.navigator.clipboard
.writeText(%s) .writeText('%s')
.then(() => console.log('Copied to clipboard')) .then(() => console.log('Copied to clipboard'))
.catch((e) => console.warn(e)); .catch((e) => console.warn(e));
]], ]],
@@ -202,7 +202,7 @@ if JS then
[[ [[
window.navigator.clipboard window.navigator.clipboard
.readText() .readText()
.then(async (text) => _$_(text)) .then((text) => {console.log(text); _$_(text);})
.catch((e) => { .catch((e) => {
console.warn(e); console.warn(e);
_$_(''); _$_('');