From 848037b13cc0b44b8a41255093ea09e572577fbc Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Tue, 12 Jan 2016 17:14:38 -0500 Subject: [PATCH] Fix handling of protocol relative and site relative URLs. --- src/js/pannellum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 144189c..b8aeb7a 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -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