Browse Source

尝试支持Chrome

tags/v1.0
枫谷剑仙 7 years ago
parent
commit
54b4f7b353
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      script.js

+ 16
- 0
script.js View File

@@ -82,6 +82,22 @@ window.onload = function()
},
onerror: function(response) {
console.error("怪物数据获取错误",response);
try
{
ms = JSON.parse(response.response);
initialize();//初始化

var idataQer = getQueryString("data");
if (idataQer)
{
var idata = JSON.parse(idataQer);
formation = idata;
refreshAll(formation);
}
}catch(e)
{
console.log("尝试解码Chrome错误返回失败。或初始数据解码出错。",e);
}
}
});
}


Loading…
Cancel
Save