Handle Edge 17 and earlier versions

This commit is contained in:
Gautier Pelloux-Prayer 2019-05-30 21:43:35 +02:00
parent 481b28759c
commit ca489cbff0
2 changed files with 4 additions and 2 deletions

View file

@ -23,7 +23,9 @@ BR.Export = L.Class.extend({
_export: function() {
var exportForm = document.forms['export'];
var format = exportForm['format'].value;
var format =
exportForm['format'].value ||
$('#export-format input:radio:checked').val();
var name = encodeURIComponent(exportForm['trackname'].value);
var uri = this.router.getUrl(this.latLngs, format, name);