catch SecurityError with localStorage, fixes #47
This commit is contained in:
parent
b108efae5c
commit
514cc705ef
3 changed files with 26 additions and 4 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue