add css override. closes #3

This commit is contained in:
Nystik
2026-03-29 19:28:14 +02:00
parent 7dc71038d7
commit c02e6829ad
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
// Injects a link to the CSS overrides stylesheet served from /assets/overrides.css.
export function installCssOverrides() {
const link = document.createElement("link");
link.rel = "stylesheet";
link.href = "/assets/overrides.css";
link.setAttribute("data-ignis", "css-overrides");
document.head.appendChild(link);
}

View File

@@ -1,10 +1,12 @@
import { installRequire } from "./require.js";
import { installGlobals } from "./globals.js";
import { installCssOverrides } from "./css-overrides.js";
import { initialize } from "./init.js";
import { fsShim } from "./fs/index.js";
installGlobals(); // process, Buffer, window overrides (before require so Buffer is available)
installRequire(); // shim registry, window.require
installCssOverrides(); // browser-specific CSS fixes
initialize(); // vault config, metadata cache, plugin prompt
// Connect file watcher WebSocket after everything is initialized