Skip to content

Commit

Permalink
Cleaned up some parts
Browse files Browse the repository at this point in the history
  • Loading branch information
yushan-mu committed Nov 7, 2024
1 parent ba2416c commit bdf86e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mapml/utils/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ export const Util = {
try {
mapEl.geojson2mapml(JSON.parse(textContent));
} catch {
console.log('Invalid link!');
console.log('Error parsing GeoJSON from: ' + text);
}
} else {
// try to process as a mapml file
Expand All @@ -683,8 +683,6 @@ export const Util = {
// should invoke lifecyle callbacks automatically by removing it from DOM
mapEl.removeChild(mapEl.lastChild);
}
// garbage collect it
l = null;
});
}
} catch (err) {
Expand Down

0 comments on commit bdf86e6

Please sign in to comment.