SeemGen/wwwroot/scripts/SeemGenCss.js

12 lines
356 B
JavaScript

window.seemgen = {
injectCssFile: function (href) {
let existing = document.getElementById("seemgen-css");
if (existing) existing.remove();
let link = document.createElement("link");
link.rel = "stylesheet";
link.href = href;
link.id = "seemgen-css";
document.head.appendChild(link);
}
};