2022-10-03 18:52:42 -04:00
|
|
|
if (typeof browser === "undefined") {
|
|
|
|
var browser = chrome;
|
|
|
|
}
|
|
|
|
|
2022-12-25 14:47:35 -05:00
|
|
|
const style = document.createElement("link");
|
|
|
|
style.type = "text/css";
|
|
|
|
style.rel = "stylesheet";
|
|
|
|
style.href = browser.runtime.getURL("dist/Vencord.css");
|
|
|
|
|
|
|
|
document.addEventListener(
|
|
|
|
"DOMContentLoaded",
|
2024-06-22 00:49:43 -04:00
|
|
|
() => {
|
|
|
|
document.documentElement.append(style);
|
|
|
|
window.postMessage({
|
|
|
|
type: "vencord:meta",
|
|
|
|
meta: {
|
|
|
|
EXTENSION_VERSION: browser.runtime.getManifest().version,
|
|
|
|
EXTENSION_BASE_URL: browser.runtime.getURL(""),
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
2022-12-25 14:47:35 -05:00
|
|
|
{ once: true }
|
|
|
|
);
|