This commit is contained in:
Mystikfluu
2022-09-05 19:28:11 +02:00
9 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -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
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")
+1 -1
View File
@@ -1,4 +1,4 @@
async function uploadFile() {
function uploadFile() {
let file = document.getElementById("avatarUpl").files[0];
console.log(file);
let formdata = new FormData();