mirror of
https://github.com/NovaGM/Modules.git
synced 2024-08-14 22:47:01 +00:00
21 lines
425 B
JavaScript
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();
|
|
},
|
|
},
|
|
};
|