mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-09 15:56:11 -04:00
Update offscreen.js (#1134)
This commit is contained in:
committed by
Leendert de Borst
parent
b638e3375d
commit
51287c85dc
@@ -27,10 +27,8 @@ const textEl = document.querySelector('#text');
|
||||
async function clearClipboard() {
|
||||
try {
|
||||
// Use execCommand to clear clipboard
|
||||
console.log(textEl);
|
||||
textEl.value = '\n';
|
||||
textEl.select();
|
||||
console.log(textEl.value);
|
||||
document.execCommand('copy');
|
||||
} catch (error) {
|
||||
console.error('[OFFSCREEN] Error clearing clipboard:', error);
|
||||
|
||||
Reference in New Issue
Block a user