Skip to content

Commit

Permalink
[BUG] java script error in the main process #66
Browse files Browse the repository at this point in the history
  • Loading branch information
Durtur committed Jul 25, 2022
1 parent 391c805 commit 12f2f6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,11 @@ function createMapToolWindow(callback) {
console.log(err);
data = { maptool: { transparentWindow: false } };
} else {
data = JSON.parse(data);
try {
data = JSON.parse(data);
} catch {
data = { maptool: { transparentWindow: false } };
}
if (data == null || data.maptool == null) {
data = { maptool: { transparentWindow: false } };
}
Expand Down

0 comments on commit 12f2f6b

Please sign in to comment.