Merge pull request #3486 from thelounge/xpaw/firefox-copy-hack

Disable copy hack in Firefox
This commit is contained in:
Pavel Djundik 2019-11-01 13:15:23 +02:00 committed by GitHub
commit 1f2ca91d89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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