mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
sync clipboard only if in focus #373.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user