From a6ca86006ce3165ee5eccb61c58cda0e3102f6bc Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 1 Mar 2023 23:42:09 +0200 Subject: [PATCH] dont alert rslurs --- files/assets/js/emoji_modal.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index f8c67635f..936dc84e6 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -274,10 +274,6 @@ function emojiAddToInput(event) if(!(emojiInputTargetDOM instanceof HTMLTextAreaElement) && !(emojiInputTargetDOM instanceof HTMLInputElement)) return; - // If a range is selected, setRangeText will overwrite it. Maybe better to ask the r-slured if he really wants this behaviour - if(emojiInputTargetDOM.selectionStart !== emojiInputTargetDOM.selectionEnd && !confirm("You've selected a range of text.\nThe emoji will overwrite it! Do you want to continue?")) - return; - let strToInsert = event.currentTarget.dataset.emojiName; for(let i = 0; i < emojiSelectPostfixDOMs.length; i++)