From f0e03da63e2fd62bd4f3f50b79e1a79de2e51bbc Mon Sep 17 00:00:00 2001 From: akamos Date: Fri, 4 Oct 2019 14:28:58 +0200 Subject: [PATCH] Added clipboard-api browser compatibility information --- app/ui.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/ui.js b/app/ui.js index e07b8667..a7b20bee 100644 --- a/app/ui.js +++ b/app/ui.js @@ -915,6 +915,9 @@ const UI = { * CLIPBOARD * ------v------*/ + // Read and write text to local clipboard is currently only supported in Chrome 66+ and Opera53+ + // further information at https://developer.mozilla.org/en-US/docs/Web/API/Clipboard + writeLocalClipboard(text) { if (typeof navigator.clipboard !== "undefined" && typeof navigator.clipboard.writeText !== "undefined") { navigator.clipboard.writeText(text).then(() => {