diff --git a/src/js/pannellum.js b/src/js/pannellum.js index f5aeb6c..859cdc6 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -2882,7 +2882,8 @@ this.removeHotSpot = function(hotSpotId, sceneId) { * @instance */ this.resize = function() { - onDocumentResize(); + if (renderer) + onDocumentResize(); } /**