loleaflet: fix slide show when it is used "file://" scheme

This commit is contained in:
Henry Castro 2016-04-06 10:11:36 -04:00
parent 6e5e9033f2
commit b6dc37fadf

View file

@ -49,7 +49,7 @@ L.Map = L.Evented.extend({
L.Cursor.imagePath = options.cursorURL || L.Cursor.getCursorURL('cursors');
if (options.webserver === undefined) {
var protocol = window.location.protocol === 'file:' ? 'http:' : window.location.protocol;
var protocol = window.location.protocol === 'file:' ? 'https:' : window.location.protocol;
options.webserver = options.server.replace(/^(ws|wss):/i, protocol);
}