From a6014cd4cd24c4a6c01f6871e1856e96553136f1 Mon Sep 17 00:00:00 2001 From: akamos Date: Fri, 4 Oct 2019 14:27:16 +0200 Subject: [PATCH] Fixed check if navigator.clipboard.writeText is defined --- app/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui.js b/app/ui.js index fc5b8c81..e07b8667 100644 --- a/app/ui.js +++ b/app/ui.js @@ -916,7 +916,7 @@ const UI = { * ------v------*/ writeLocalClipboard(text) { - if (typeof navigator.clipboard !== "undefined" && typeof navigator.clipboard.readText !== "undefined") { + if (typeof navigator.clipboard !== "undefined" && typeof navigator.clipboard.writeText !== "undefined") { navigator.clipboard.writeText(text).then(() => { let debugMessage = text.substr(0, 40) + "..."; Log.Debug('>> UI.setClipboardText: navigator.clipboard.writeText with ' + debugMessage);