Replace ??=, not supported by i18next-scanner

This commit is contained in:
Norbert Renner 2022-04-11 18:59:28 +02:00
parent 42d8b27266
commit c122b31e73
3 changed files with 12 additions and 7 deletions

View file

@ -513,7 +513,7 @@ BR.Routing = L.Routing.extend({
_interpolateBeelines: function (serialBeelines, before, after) {
let altStart = serialBeelines[0].getLatLngs()[0].alt;
const altEnd = serialBeelines[serialBeelines.length - 1].getLatLngs()[1].alt ?? altStart;
altStart ??= altEnd;
altStart ?? (altStart = altEnd);
let serialDelta = 0;
if (altStart != null && altEnd != null) {