Commit graph

13 commits

Author SHA1 Message Date
Norbert Renner
b5d87fe8d1 Determine country rules by enclosing boundary 2021-01-23 12:43:13 +01:00
Norbert Renner
3037fb8f17 Use TopoJSON for smaller files 2021-01-22 11:50:27 +01:00
Norbert Renner
a5f04dd9cd
Determine allowed zone from admin boundaries (#359) 2021-01-15 22:29:20 +01:00
Gautier P
25429b3c24 Update prettier version 2020-12-05 11:51:16 +01:00
Norbert Renner
9500481df0 Sanitize track name (#312)
to prevent code in GPX getting executed like this:
<name>&lt;img src="xyz" onerror="alert('script executed')"></name>
2020-07-14 09:27:57 +02:00
Henrik Fehlauer
08c8cfa8be Prevent more accidental shortcut triggers
Do not allow browser keyboard shortcuts to trigger route functions,
e.g. pressing Ctrl+P triggers printing in most browsers, but should not
at the same time switch BRouter-Web to POI mode. This can be prevented
by filtering for modifiers.

In the same fashion, when modal dialogs or dropdowns are open it should
not be possible to activate map functions in the background now.

Finally, inhibit shortcuts in number input fields too, as found in the
editable number input fields in the customize profile options.
Previously only regular text input fields were protected.

To make those checks easier to use, they are deduplicated and moved to
Util.js.
2020-05-28 18:00:00 +00:00
Gautier P
92ad30be17 Hide zoom controls on mobile 2020-05-24 21:24:14 +02:00
Gautier Pelloux-Prayer
970a34981f Add prettier and reformat code 2019-05-17 20:55:39 +02:00
Gautier Pelloux-Prayer
f54d72644b translate via i18next 2019-02-26 18:02:02 +01:00
Gautier Pelloux-Prayer
9109322905 Use https scheme whenever possible, to avoid mixed content issues 2017-05-09 22:14:39 +02:00
Norbert Renner
514cc705ef catch SecurityError with localStorage, fixes #47 2016-10-05 11:49:54 +02:00
Norbert Renner
109eeb471c catch cross-origin exception for local file:// urls (profiles) 2015-05-22 14:25:00 +02:00
Norbert Renner
93d0b7f7df Load profile content for selected profile 2015-03-17 20:39:26 +01:00