From b6dc37fadf5e24dd34d759e55fe82a0610cbcc92 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Wed, 6 Apr 2016 10:11:36 -0400 Subject: [PATCH] loleaflet: fix slide show when it is used "file://" scheme --- loleaflet/src/map/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js index 995a113fe..a1a768d9d 100644 --- a/loleaflet/src/map/Map.js +++ b/loleaflet/src/map/Map.js @@ -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); }