diff --git a/src/viewer.js b/src/viewer.js index 45714ac2..93c8394b 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2810,7 +2810,9 @@ function lightUp() { function onHome() { - this.viewport.goHome(); + if ( this.viewport ) { + this.viewport.goHome(); + } }