From 2337de90a1290e9c9267e99113779bba94916040 Mon Sep 17 00:00:00 2001 From: Craig Date: Sun, 2 Feb 2020 22:51:28 +0000 Subject: [PATCH] potential fix for #26 --- client/src/components/video.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/video.vue b/client/src/components/video.vue index 37d69da..e3f0322 100644 --- a/client/src/components/video.vue +++ b/client/src/components/video.vue @@ -239,7 +239,7 @@ @Watch('clipboard') onClipboardChanged(clipboard: string) { - if (navigator.clipboard) { + if (navigator.clipboard && typeof navigator.clipboard.writeText === 'function') { navigator.clipboard.writeText(clipboard).catch(console.error) } } @@ -329,7 +329,7 @@ return } - if (this.hosting && navigator.clipboard) { + if (this.hosting && navigator.clipboard && typeof navigator.clipboard.readText === 'function') { navigator.clipboard .readText() .then(text => {