Remove unnecessary 'async' keyword
This commit is contained in:
@@ -340,7 +340,7 @@ function unreply() {
|
||||
|
||||
var cansendNoti = false
|
||||
|
||||
async function askNotiPerms() {
|
||||
function askNotiPerms() {
|
||||
return Notification.requestPermission()
|
||||
}
|
||||
|
||||
@@ -411,7 +411,7 @@ function createChannel(channelname,tab) {
|
||||
channelp.id = channelname
|
||||
let textnode = document.createTextNode(channelname)
|
||||
channelp.appendChild(textnode)
|
||||
channelp.addEventListener("click",async function(){
|
||||
channelp.addEventListener("click", function(){
|
||||
switchChannel(channelname)
|
||||
main()
|
||||
unreply()
|
||||
|
||||
+3
-3
@@ -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")
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
async function uploadFile() {
|
||||
function uploadFile() {
|
||||
let file = document.getElementById("avatarUpl").files[0];
|
||||
console.log(file);
|
||||
let formdata = new FormData();
|
||||
|
||||
Reference in New Issue
Block a user