[Libreoffice-commits] online.git: loleaflet/src

Henry Castro hcastro at collabora.com
Wed Apr 6 14:14:45 UTC 2016


 loleaflet/src/map/Map.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b6dc37fadf5e24dd34d759e55fe82a0610cbcc92
Author: Henry Castro <hcastro at collabora.com>
Date:   Wed Apr 6 10:11:36 2016 -0400

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

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 995a113..a1a768d 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);
 		}
 


More information about the Libreoffice-commits mailing list