loleaflet: fix slide show when it is used "file://" scheme
This commit is contained in:
parent
6e5e9033f2
commit
b6dc37fadf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue