mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-29 02:16:21 +02:00
sync clipboard only if in focus #373.
This commit is contained in:
parent
11a862f101
commit
4ab5901ba9
1 changed files with 1 additions and 1 deletions
|
@ -630,7 +630,7 @@
|
|||
}
|
||||
|
||||
async syncClipboard() {
|
||||
if (this.clipboard_read_available) {
|
||||
if (this.clipboard_read_available && window.document.hasFocus()) {
|
||||
try {
|
||||
const text = await navigator.clipboard.readText()
|
||||
if (this.clipboard !== text) {
|
||||
|
|
Loading…
Add table
Reference in a new issue