Fix for javascript errors when navigating blocks

This commit is contained in:
softsimon
2022-12-01 23:12:02 +09:00
parent 5ff5275b36
commit 3572ba837d
2 changed files with 5 additions and 0 deletions

View File

@@ -77,6 +77,8 @@ export class BlockOverviewGraphComponent implements AfterViewInit, OnDestroy, On
cancelAnimationFrame(this.animationFrameRequest);
clearTimeout(this.animationHeartBeat);
}
this.canvas.nativeElement.removeEventListener('webglcontextlost', this.handleContextLost);
this.canvas.nativeElement.removeEventListener('webglcontextrestored', this.handleContextRestored);
}
clear(direction): void {