mirror of
https://github.com/thelounge/thelounge.git
synced 2026-04-30 18:54:58 -04:00
Disable copy hack in Firefox
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user