From 377bf529add1ff83e087aa84d34931b7eeb91ce3 Mon Sep 17 00:00:00 2001 From: gabek Date: Fri, 23 Jul 2021 18:21:30 +0000 Subject: [PATCH] Prettified Code! --- webroot/js/utils/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webroot/js/utils/chat.js b/webroot/js/utils/chat.js index 18b4df1d2..4c45980ca 100644 --- a/webroot/js/utils/chat.js +++ b/webroot/js/utils/chat.js @@ -9,7 +9,7 @@ export function getCaretPosition(node) { var range = window.getSelection().getRangeAt(0), preCaretRange = range.cloneRange(), caretPosition, - tmp = document.createElement("div"); + tmp = document.createElement('div'); preCaretRange.selectNodeContents(node); preCaretRange.setEnd(range.endContainer, range.endOffset); @@ -100,7 +100,7 @@ export function convertToText(str = '') { You would call this when a user pastes from the clipboard into a `contenteditable` area. */ -export function convertOnPaste(event = { preventDefault() { } }, emojiList) { +export function convertOnPaste(event = { preventDefault() {} }, emojiList) { // Prevent paste. event.preventDefault();