Browse Source

Remove "fallback" parameter, since Flash-based viewers no longer work.

It doesn't make much sense to provide a URL to a non-WebGL viewer anymore.
pull/1055/head
Matthew Petroff 3 years ago
parent
commit
308d86ecd9
2 changed files with 0 additions and 23 deletions
  1. +0
    -7
      doc/json-config-parameters.md
  2. +0
    -16
      src/js/pannellum.js

+ 0
- 7
doc/json-config-parameters.md View File

@@ -70,13 +70,6 @@ after it is loaded. This parameter only has an effect if the `autoRotate`
parameter is set.


### `fallback` (string)

If set, the value is used as a URL for a fallback viewer in case Pannellum is
not supported by the user's device. The user will be given the option to click
a link and visit this URL if Pannellum fails to work.


### `orientationOnByDefault` (boolean)

If set to `true`, device orientation control will be used when the panorama is


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

@@ -2236,22 +2236,6 @@ function processOptions(isPreview) {
infoDisplay.container.style.display = 'inline';
break;
case 'fallback':
var link = document.createElement('a');
link.href = sanitizeURL(config[key], true);
if (config.targetBlank) {
link.target = '_blank';
link.rel = 'noopener';
}
link.textContent = 'Click here to view this panorama in an alternative viewer.';
var message = document.createElement('p');
message.textContent = 'Your browser does not support WebGL.';
message.appendChild(document.createElement('br'));
message.appendChild(link);
infoDisplay.errorMsg.innerHTML = ''; // Removes all children nodes
infoDisplay.errorMsg.appendChild(message);
break;
case 'hfov':
setHfov(Number(config[key]));
break;


Loading…
Cancel
Save