Browse Source

Check for renderer before attempting resize.

pull/632/merge
Matthew Petroff 6 years ago
parent
commit
6075298162
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/js/pannellum.js

+ 2
- 1
src/js/pannellum.js View File

@@ -2882,7 +2882,8 @@ this.removeHotSpot = function(hotSpotId, sceneId) {
* @instance * @instance
*/ */
this.resize = function() { this.resize = function() {
onDocumentResize();
if (renderer)
onDocumentResize();
} }


/** /**


Loading…
Cancel
Save