lexicon to root support for old and new UI adjusted help panel/pop out css for better scaling templates for help sections
24 lines
573 B
JavaScript
24 lines
573 B
JavaScript
/**
|
|
* File: core.js
|
|
*
|
|
* Project: Jovimetrix
|
|
*/
|
|
|
|
import { app } from "../../../scripts/app.js"
|
|
|
|
app.registerExtension({
|
|
name: "jovimetrix",
|
|
init() {
|
|
const styleTagId = 'jovimetrix-stylesheet';
|
|
let styleTag = document.getElementById(styleTagId);
|
|
if (styleTag) {
|
|
return;
|
|
}
|
|
document.head.appendChild(Object.assign(document.createElement('link'), {
|
|
id: styleTagId,
|
|
rel: 'stylesheet',
|
|
type: 'text/css',
|
|
href: 'extensions/Jovimetrix/jovimetrix.css'
|
|
}));
|
|
}
|
|
}); |