Browse Source

Fix handling of protocol relative and site relative URLs.

tags/2.2.0
Matthew Petroff 8 years ago
parent
commit
848037b13c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/js/pannellum.js

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

@@ -236,7 +236,7 @@ function init() {
// From http://stackoverflow.com/a/19709846
var absoluteURL = function(url) {
return new RegExp('^(?:[a-z]+:)?//', 'i').test(url);
return new RegExp('^(?:[a-z]+:)?//', 'i').test(url) | url[0] == '/';
};
// Configure image loading


Loading…
Cancel
Save