import {addStyle} from "../utils"; import * as fs from "fs"; import * as path from "path"; export function injectTabs() { document.addEventListener("DOMContentLoaded", function (event) { var elem = document.createElement("div"); elem.innerHTML = ``; elem.classList.add("withFrame-haYltI"); if (document.getElementById("app-mount") == null) { document.body.appendChild(elem); } else { document.getElementById("app-mount")!.prepend(elem); } const cssPath = path.join(__dirname, "../", "/content/css/tabs.css"); addStyle(fs.readFileSync(cssPath, "utf8")); }); }