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() {
|
async syncClipboard() {
|
||||||
if (this.clipboard_read_available) {
|
if (this.clipboard_read_available && window.document.hasFocus()) {
|
||||||
try {
|
try {
|
||||||
const text = await navigator.clipboard.readText()
|
const text = await navigator.clipboard.readText()
|
||||||
if (this.clipboard !== text) {
|
if (this.clipboard !== text) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue