Browse Source

Fix recovery from load failure (fixes #755).

pull/759/head
Matthew Petroff 5 years ago
parent
commit
ebc31b7239
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/js/pannellum.js

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

@@ -335,6 +335,7 @@ function init() {
} else {
if (config.panorama === undefined) {
anError(config.strings.noPanoramaError);
loaded = undefined;
return;
}
panoImage = new Image();
@@ -637,6 +638,7 @@ function clearError() {
infoDisplay.load.box.style.display = 'none';
infoDisplay.errorMsg.style.display = 'none';
error = false;
renderContainer.style.display = 'block';
fireEvent('errorcleared');
}
}


Loading…
Cancel
Save