Javascript for sticky sidebar doesn't work locally
Created originally on Bitbucket by Anonymous
In file "cloud.js_t", on line 63, there's the following statement:
#!javascript
var hosturl = document.location.href.match(/^[a-z0-9]+:(\/\/)?([^@]*@)?[^/]+/)[0],
This doesn't handle local FILE URLs, which may have the following form (at least on Windows machines):
file:///C:/Project/ThemeTest/build/html/2015.html
Problem seems to be fixed by changing regexp to:
#!javascript
var hosturl = document.location.href.match(/^[a-z0-9]+:(\/\/|\/\/\/)?([^@]*@)?[^/]+/)[0],