From 97cfd1a2bc3e4b3533faa2cc8a3f3b4e37ad4b09 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Thu, 31 Oct 2019 16:49:09 +0200 Subject: [PATCH] Disable copy hack in Firefox --- client/js/clipboard.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/js/clipboard.js b/client/js/clipboard.js index da33b646..a2db3586 100644 --- a/client/js/clipboard.js +++ b/client/js/clipboard.js @@ -1,6 +1,11 @@ "use strict"; module.exports = function(chat) { + // Disable in Firefox as it already copies flex text correctly + if (typeof window.InstallTrigger !== "undefined") { + return; + } + const selection = window.getSelection(); // If selection does not span multiple elements, do nothing