fix json import

This commit is contained in:
Devin Howard 2016-03-31 13:03:14 +08:00
parent b9b9e57c41
commit 7d6acb7014

View file

@ -41,7 +41,7 @@ Metamaps.Import = {
var text = e.originalEvent.clipboardData.getData('text/plain');
var results;
if (text[0] === '{') {
if (text.trimLeft()[0] === '{') {
try {
results = JSON.parse(text);
} catch (e) {