From 8a35da75e33132cac229be84fc1eed194ec3c6ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Wed, 23 Jun 2021 15:03:42 -0400 Subject: [PATCH] chatview: pass to eslint Change-Id: If308d7e6611d4c7d9a13c83ce304e653f248a43e --- src/web-chatview/chatview.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/web-chatview/chatview.js b/src/web-chatview/chatview.js index 90a5a460..19845dae 100644 --- a/src/web-chatview/chatview.js +++ b/src/web-chatview/chatview.js @@ -63,7 +63,7 @@ invitation.style.display = "none" const inviteImage = document.getElementById("invite_image") const navbar = document.getElementById("navbar") -const emojiBtn = document.getElementById('emojiButton'); +const emojiBtn = document.getElementById("emojiButton") const invitationText = document.getElementById("invitation_text") const joinText = document.getElementById("join_text") const noteText = document.getElementById("note_text") @@ -102,7 +102,7 @@ document.body.onauxclick = function(e) { String.prototype.format = function() { var a = this for (var k in arguments) { - a = a.replace("{" + k + "}", arguments[k]) + a = a.replace("{" + k + "}", arguments[k]) } return a } @@ -136,7 +136,7 @@ if (use_qt) { // connect to a signal window.jsbridge.setSendMessageContentRequest.connect(function(content) { setSendMessageContent(content) - }); + }) }) } @@ -177,14 +177,14 @@ function init_i18n(data) { /* exported init_picker */ function init_picker(dark) { const picker = new EmojiButton({ - theme: dark? 'dark' : 'light' - }); - picker.on('emoji', emoji => { - messageBarInput.value += emoji.emoji; - }); - emojiBtn.addEventListener('click', () => { - picker.togglePicker(emojiBtn); - }); + theme: dark? "dark" : "light" + }) + picker.on("emoji", emoji => { + messageBarInput.value += emoji.emoji + }) + emojiBtn.addEventListener("click", () => { + picker.togglePicker(emojiBtn) + }) } /* exported set_is_swarm */ @@ -1621,7 +1621,7 @@ function textInteraction(message_id, message_direction, htmlText) { message_wrapper.setAttribute("class", "message_wrapper") var message_text = document.createElement("div") message_text.setAttribute("class", "message_text") - message_text.setAttribute("dir", "auto"); + message_text.setAttribute("dir", "auto") message_text.innerHTML = htmlText message_wrapper.appendChild(message_text) // TODO STATUS @@ -2594,7 +2594,7 @@ function replaceText() { grow_text_area() }) .catch(err => { - console.error('Failed to read clipboard contents: ', err) + console.error("Failed to read clipboard contents: ", err) }) } @@ -2667,12 +2667,12 @@ function setSendMessageContent(contentStr) { messageBarInput.value = contentStr // Do not grow if there are no messages loaded if (historyBuffer.length !== 0) - grow_text_area(); - reduce_send_container(); + grow_text_area() + reduce_send_container() } function checkSendButton() { sendButton.style.display = (messageBarInput.value.length > 0 || sendContainer.innerHTML.length > 0) - ? "block" : "none" + ? "block" : "none" } -- GitLab