fix: start on load

parent 4de02a8f
...@@ -21,9 +21,14 @@ export class JsonComponent implements OnInit { ...@@ -21,9 +21,14 @@ export class JsonComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
setTimeout(() => { const that = this;
this.pause(); let r = true;
}, 2000); window.onresize = function () {
if (r) {
that.pause();
r = false;
}
};
} }
setSpeed() { 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