Fix NaN rotation warning

This commit is contained in:
Max Goodhart
2020-11-10 23:43:42 -08:00
parent 222e9bc36f
commit 0a235e7e64

View File

@@ -78,12 +78,12 @@ class RotationController {
this.video.className = `__rot${rotation}__` this.video.className = `__rot${rotation}__`
} }
setSite(rotation) { setSite(rotation = 0) {
this.siteRotation = rotation this.siteRotation = rotation
this._update() this._update()
} }
setCustom(rotation) { setCustom(rotation = 0) {
this.customRotation = rotation this.customRotation = rotation
this._update() this._update()
} }