Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/bugfix/fix-map-in-safari' into e…
Browse files Browse the repository at this point in the history
…nhancement/tags-page
  • Loading branch information
oscgonfer committed Nov 30, 2023
2 parents 9459acb + e36d013 commit d391a86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"angular-load": "~0.3.0",
"angular-material": "^1.1.9",
"angular-sanitize": "^1.7.0",
"angular-spinner": "~0.6.1",
"angular-spinner": "https://github.com/fablabbcn/bower-angular-spinner.git",
"angular-ui-router": "^1.0.17",
"angular-cookies": "^1.7.0",
"d3": "~3.5.5",
Expand Down
7 changes: 5 additions & 2 deletions src/app/core/api/device.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@
timestamp: new Date(),
data: data
};

$window.localStorage.setItem('smartcitizen.markers', JSON.stringify(obj) );
try {
$window.localStorage.setItem('smartcitizen.markers', JSON.stringify(obj) );
} catch (e) {
console.log("Could not store markers in localstorage. skipping...");
}
worldMarkers = obj.data;
}

Expand Down

0 comments on commit d391a86

Please sign in to comment.