Merge pull request #3486 from thelounge/xpaw/firefox-copy-hack
Disable copy hack in Firefox
This commit is contained in:
commit
1f2ca91d89
@ -1,6 +1,11 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
module.exports = function(chat) {
|
module.exports = function(chat) {
|
||||||
|
// Disable in Firefox as it already copies flex text correctly
|
||||||
|
if (typeof window.InstallTrigger !== "undefined") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const selection = window.getSelection();
|
const selection = window.getSelection();
|
||||||
|
|
||||||
// If selection does not span multiple elements, do nothing
|
// If selection does not span multiple elements, do nothing
|
||||||
|
Loading…
Reference in New Issue
Block a user