Remove textnode checks before applying firefox double double qutoes fix

82570ef31d86bce75d925a9c0d84f4781f1ec627

maver <christian.pahren@googlemail.com>

Signed
1 files changed, +1 -2Ignore whitespace
public/scripts/browser-fixes.js+1 -2
@@ -7,8 +7,7 @@ function sanitizeInlineQuotationOnCopy() {
7 // To work around this, take the selection and transform <q> to <span> before calling toString().7 // To work around this, take the selection and transform <q> to <span> before calling toString().
8 document.addEventListener('copy', function (event) {8 document.addEventListener('copy', function (event) {
9 const selection = window.getSelection();9 const selection = window.getSelection();
10 if (selection.anchorNode.nodeName !== '#text' || selection.focusNode.nodeName !== '#text' || !selection.anchorNode?.parentElement.closest('.mes_text')) {10 if (!selection.anchorNode?.parentElement.closest('.mes_text')) {
11 // Complex selection, skip.
12 return;11 return;
13 }12 }
1413