mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-15 02:20:26 +00:00
move settings to seperate file
This commit is contained in:
@@ -18,6 +18,7 @@ import "./audio/page.js";
|
||||
import "./404.js";
|
||||
import type * as C from "./typeChecker/chekerIndex.js";
|
||||
import {TypeBox} from "./typeBox.js";
|
||||
import {showusersettings} from "./mainSettings.js";
|
||||
|
||||
if (window.location.pathname === "/app") {
|
||||
window.location.pathname = "/channels/@me";
|
||||
@@ -192,7 +193,7 @@ if (window.location.pathname.startsWith("/channels")) {
|
||||
await setTheme();
|
||||
|
||||
function userSettings(): void {
|
||||
thisUser?.showusersettings();
|
||||
if (thisUser) showusersettings(thisUser);
|
||||
}
|
||||
|
||||
(document.getElementById("settings") as HTMLImageElement).onclick = userSettings;
|
||||
|
||||
+9
-1577
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -74,7 +74,6 @@ class MarkDown {
|
||||
return this.markdown(this.txt, {keep, stdsize});
|
||||
}
|
||||
markdown(text: string | string[], {keep = false, stdsize = false} = {}) {
|
||||
debugger;
|
||||
if (!keep && !stdsize) {
|
||||
let str: string;
|
||||
if (text instanceof Array) {
|
||||
|
||||
Reference in New Issue
Block a user