浏览代码

优化了一下jsonformat功能

Alien 12 年之前
父节点
当前提交
4e0297d2f4
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      chrome/manifest.json
  2. 1 1
      chrome/online.manifest.json
  3. 1 1
      chrome/static/js/jsonformat/contentscript-jsonformat.js

+ 1 - 1
chrome/manifest.json

@@ -1,6 +1,6 @@
 { 
 	"name": "WEB前端助手(FeHelper)", 
-	"version": "3.4",
+	"version": "3.5",
     "manifest_version": 2,
 	 
 	"default_locale": "zh_CN", 

+ 1 - 1
chrome/online.manifest.json

@@ -1,6 +1,6 @@
 {
     "name": "WEB前端助手(FeHelper)",
-    "version": "3.4",
+    "version": "3.5",
     "manifest_version": 2,
 
     "default_locale": "zh_CN",

+ 1 - 1
chrome/static/js/jsonformat/contentscript-jsonformat.js

@@ -41,7 +41,7 @@ baidu.csJsonFormat = (function(){
                 jsonObj = new Function("return " + source)();
             }catch(ex){
             }
-            if(jsonObj) {
+            if(jsonObj && typeof jsonObj == "object") {
                 $('body').html(_htmlFragment);
                 _loadCss();
                 JsonFormatEntrance.clear();