Disable copy hack in Firefox

This commit is contained in:
Pavel Djundik 2019-10-31 16:49:09 +02:00
parent d8a6b137fe
commit 97cfd1a2bc

View File

@ -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