prettyify code
This commit is contained in:
@ -1,14 +1,22 @@
|
||||
import { App } from './app'
|
||||
import { App } from "./app";
|
||||
|
||||
const app = new App()
|
||||
const app = new App();
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
app.init()
|
||||
document.addEventListener(
|
||||
"DOMContentLoaded",
|
||||
() => {
|
||||
app.init();
|
||||
|
||||
window.addEventListener('resize', function () {
|
||||
app.percentageBar.redraw()
|
||||
window.addEventListener(
|
||||
"resize",
|
||||
function () {
|
||||
app.percentageBar.redraw();
|
||||
|
||||
// Delegate to GraphDisplayManager which can check if the resize is necessary
|
||||
app.graphDisplayManager.requestResize()
|
||||
}, false)
|
||||
}, false)
|
||||
// Delegate to GraphDisplayManager which can check if the resize is necessary
|
||||
app.graphDisplayManager.requestResize();
|
||||
},
|
||||
false
|
||||
);
|
||||
},
|
||||
false
|
||||
);
|
||||
|
Reference in New Issue
Block a user