adding error handling for signup, moving delete account button in sidebar to bottom

This commit is contained in:
metacryst
2026-03-25 23:41:45 -05:00
parent 1c61a4d202
commit 472e69d3c0
8 changed files with 27 additions and 16 deletions

View File

@@ -3,7 +3,7 @@ import util from "../util.js"
class AppMenu extends Shadow {
selected = ""
apps = global.currentNetwork.apps
apps = global.currentNetwork.apps.filter(app => (app !== "Settings" && app !== "Website"))
darkMode = window.matchMedia('(prefers-color-scheme: dark)').matches
getImageURL(appName) {
@@ -29,7 +29,7 @@ class AppMenu extends Shadow {
render() {
let apps = this.apps
let appCount = apps.filter(app => app !== "Settings").length
let appCount = apps.length
let horizontalMargin = {
1: 50,
2: 10,
@@ -42,7 +42,6 @@ class AppMenu extends Shadow {
for(let i = 0; i < apps.length; i++) {
let app = apps[i]
if (app === "Settings") continue;
img(this.getImageURL(app), "1.3em")
.attr({app: app})