Minetrack/assets/js/main.js
2023-12-30 23:03:54 +00:00

23 lines
411 B
JavaScript

import { App } from "./app";
const app = new App();
document.addEventListener(
"DOMContentLoaded",
() => {
app.init();
window.addEventListener(
"resize",
function () {
app.percentageBar.redraw();
// Delegate to GraphDisplayManager which can check if the resize is necessary
app.graphDisplayManager.requestResize();
},
false
);
},
false
);