Remove protocol from iframe src url

Note that baseUrl is only used for iframe src url, nothing else
This commit is contained in:
Binnette 2020-02-20 21:33:41 +01:00
parent cca6041061
commit 6625f16702

View file

@ -1033,7 +1033,7 @@ L.U.IframeExporter = L.Evented.extend({
initialize: function (map) {
this.map = map;
this.baseUrl = window.location.protocol + '//' + window.location.host + window.location.pathname;
this.baseUrl = '//' + window.location.host + window.location.pathname;
// Use map default, not generic default
this.queryString.onLoadPanel = this.map.options.onLoadPanel;
},