1
0
Fork 0
mirror of https://github.com/NovaGM/Modules.git synced 2024-08-14 22:47:01 +00:00
Modules/usrbg/index.js
2021-03-04 19:04:47 +01:00

21 lines
425 B
JavaScript

import { version } from './goosemodModule.json';
let el;
const css = `@import url("https://keanuplayz.github.io/usrbg/dist/usrbg.css");`;
export default {
goosemodHandlers: {
onImport: async function () {
el = document.createElement('style');
document.head.appendChild(el);
el.appendChild(document.createTextNode(css));
},
onRemove: async function () {
el.remove();
},
},
};