crash on missing preview

This commit is contained in:
or-else
2022-03-15 19:27:54 -07:00
parent e121b1645f
commit afea2aeec0
5 changed files with 11 additions and 3 deletions
+4
View File
@@ -9782,6 +9782,10 @@ class AudioPlayer extends (react__WEBPACK_IMPORTED_MODULE_0___default().PureComp
}
visualize() {
if (!this.canvasRef.current) {
return;
}
const width = this.effectiveWidth;
const height = this.canvasRef.current.height;
this.canvasContext.lineWidth = LINE_WIDTH;