Browse Source

Fix error message display.

pull/57/head
Matthew Petroff 9 years ago
parent
commit
405056e255
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/js/pannellum.js

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

@@ -393,9 +393,10 @@ function parseGPanoXMP(image) {
function anError(error) {
if (error !== undefined) {
infoDisplay.errorMsg.innerHTML = '<p>' + error + '</p>';
} else {
infoDisplay.errorMsg.innerHTML = '<p>Your browser does not have the necessary WebGL support to display this panorama.</p>';
}
infoDisplay.load.box.style.display = 'none';
infoDisplay.errorMsg.innerHTML = '<p>Your browser does not have the necessary WebGL support to display this panorama.</p>';
infoDisplay.errorMsg.style.display = 'table';
error = true;
renderContainer.style.display = 'none';


Loading…
Cancel
Save