|
@@ -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) + "')"; |
|
|