fix: start on load

parent 4de02a8f
......@@ -21,9 +21,14 @@ export class JsonComponent implements OnInit {
}
ngOnInit() {
setTimeout(() => {
this.pause();
}, 2000);
const that = this;
let r = true;
window.onresize = function () {
if (r) {
that.pause();
r = false;
}
};
}
setSpeed() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment