Remove unnecessary 'async' keyword

This commit is contained in:
deepsource-autofix[bot]
2022-09-05 17:25:36 +00:00
committed by GitHub
parent 85b549458d
commit c478f83f70
9 changed files with 35 additions and 35 deletions
+3 -3
View File
@@ -36,7 +36,7 @@ socket.addEventListener("message", async function (event) {
var cd = true //inversed "cooldown"
async function postMessage() {
function postMessage() {
let msg = getById("post-text").value
let len = msg.length
if(len > 1000) {
@@ -286,7 +286,7 @@ function unreply() {
var cansendNoti = false
async function askNotiPerms() {
function askNotiPerms() {
return Notification.requestPermission()
}
@@ -329,7 +329,7 @@ function switchChannel(channelname) {
socket.send(JSON.stringify({"id":"switchChannel","data":channelname}))
}
async function loadChannels() {
function loadChannels() {
// <!-- <p class="channel">- Channel Name -</p> -->
let tab = getById("channelTab")