mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
add css override. closes #3
This commit is contained in:
9
src/shims/css-overrides.js
Normal file
9
src/shims/css-overrides.js
Normal 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);
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user