From 91d33b7288113dc9c710498448a8d7eaeaaf84a8 Mon Sep 17 00:00:00 2001 From: x-kom Arkadiusz Czekajski Date: Mon, 27 Jan 2020 13:27:54 +0100 Subject: [PATCH] Bugfix for unsafe JSON parsing --- package-lock.json | 2 +- package.json | 2 +- src/drawMap.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index e3ad79b..b9dc73b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "iitc-plugin-mininomaly", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 31ab379..04ec562 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iitc-plugin-mininomaly", - "version": "2.0.0", + "version": "2.0.1", "description": "", "main": "dist/plugin.user.js", "scripts": { diff --git a/src/drawMap.ts b/src/drawMap.ts index e580504..832a3eb 100644 --- a/src/drawMap.ts +++ b/src/drawMap.ts @@ -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(',');