From 607529816274d26a56654c02590864280b9c1038 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Wed, 18 Jul 2018 19:22:28 -0400 Subject: [PATCH] Check for renderer before attempting resize. --- src/js/pannellum.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } /**