set clipboard on js
This commit is contained in:
parent
abadb37baf
commit
67a210f9a4
@ -268,7 +268,12 @@ export default class Connection {
|
||||
if (!c) continue;
|
||||
cb.content = c;
|
||||
}
|
||||
globals.pushEvent("clipboard", cb);
|
||||
try {
|
||||
await navigator.clipboard.writeText(new TextDecoder().decode(cb.content));
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
// globals.pushEvent("clipboard", cb);
|
||||
} else if (msg?.cursor_data) {
|
||||
const cd = msg?.cursor_data;
|
||||
const c = await decompress(cd.colors);
|
||||
|
Loading…
x
Reference in New Issue
Block a user