Skip to content

Commit

Permalink
Bugfix for unsafe JSON parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
aczekajski committed Jan 27, 2020
1 parent 9e9bdef commit 91d33b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iitc-plugin-mininomaly",
"version": "2.0.0",
"version": "2.0.1",
"description": "",
"main": "dist/plugin.user.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/drawMap.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LatLng } from "./commonInterfaces";
import colors from "./colors";

const mapLines = JSON.parse(window.localStorage['PRIV.mapLines']) || [];
const mapLines = JSON.parse(window.localStorage['PRIV.mapLines'] || '[]');

const getLatLngFromE6 = (latlng: string): LatLng => {
const split = latlng.split(',');
Expand Down

0 comments on commit 91d33b7

Please sign in to comment.