catch SecurityError with localStorage, fixes #47

This commit is contained in:
Norbert Renner 2016-10-05 11:49:54 +02:00
parent b108efae5c
commit 514cc705ef
3 changed files with 26 additions and 4 deletions

View file

@ -60,7 +60,7 @@ BR.Map = {
map = new L.Map('map', {
worldCopyJump: true
});
if (!map.restoreView()) {
if (!BR.Util.localStorageAvailable() || !map.restoreView()) {
map.setView([50.99, 9.86], 6);
}
map.attributionControl.addAttribution(