Minetrack/assets/js/main.js
2020-05-11 20:53:59 -05:00

15 lines
350 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)