document.getElementById("default-dark")?.setAttribute("disabled", "disabled");
// Load the theme dynamically
- let cssLoc = `/css/themes/${theme}.min.css`;
+ let cssLoc = `/css/themes/${theme}.css`;
loadCss(theme, cssLoc);
document.getElementById(theme).removeAttribute("disabled");
return ps.banned;
}
}
+
+export function pushNotNull(array: any[], new_item?: any) {
+ if (new_item) {
+ array.push(...new_item);
+ }
+}