Browse Source

Fix bug with preview image absolute URLs.

pull/318/head
Matthew Petroff 8 years ago
parent
commit
a5d01c70bb
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/js/pannellum.js

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

@@ -1793,9 +1793,8 @@ function processOptions() {
// panoramas // panoramas
if ('preview' in config) { if ('preview' in config) {
var p = config.preview; var p = config.preview;
if (config.basePath) {
if (config.basePath && !absoluteURL(p))
p = config.basePath + p; p = config.basePath + p;
}
preview = document.createElement('div'); preview = document.createElement('div');
preview.className = 'pnlm-preview-img'; preview.className = 'pnlm-preview-img';
preview.style.backgroundImage = "url('" + encodeURI(p) + "')"; preview.style.backgroundImage = "url('" + encodeURI(p) + "')";


Loading…
Cancel
Save