Disable copy hack in Firefox
This commit is contained in:
parent
d8a6b137fe
commit
97cfd1a2bc
@ -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