소스 검색

[edit][config icons]

zhangwei 3 년 전
부모
커밋
743e5ec7b3
2개의 변경된 파일31개의 추가작업 그리고 17개의 파일을 삭제
  1. 11 6
      src/manifest.development.json
  2. 20 11
      src/manifest.production.json

+ 11 - 6
src/manifest.development.json

@@ -6,13 +6,18 @@
     "background": {
         "service_worker": "/js/background.js"
     },
+    "icons": {
+        "16": "/logo/16.png",
+        "48": "/logo/48.png",
+        "128": "/logo/128.png"
+    },
     "action": {
-        "default_popup": "popup.html",
-        "default_icon": {           
-            "16": "/logo/16.png",  
-            "48": "/logo/48.png",  
-            "128": "/logo/128.png"   
-          }
+        "default_popup": "popup.html"
+        // "default_icon": {
+        //     "16": "/logo/16.png",
+        //     "48": "/logo/48.png",
+        //     "128": "/logo/128.png"
+        // }
     },
     "content_scripts": [
         {

+ 20 - 11
src/manifest.production.json

@@ -6,8 +6,18 @@
     "background": {
         "service_worker": "/js/background.js"
     },
+    "icons": {
+        "16": "/logo/16.png",
+        "48": "/logo/48.png",
+        "128": "/logo/128.png"
+    },
     "action": {
         "default_popup": "popup.html"
+        // "default_icon": {
+        //     "16": "/logo/16.png",
+        //     "48": "/logo/48.png",
+        //     "128": "/logo/128.png"
+        // }
     },
     "content_scripts": [
         {
@@ -23,8 +33,8 @@
     "host_permissions": [
         "*://*/*",
         "https://de-net-test.piaoquantv.com"
-      ],
-    "permissions":[
+    ],
+    "permissions": [
         "tabs",
         "action",
         "cookies",
@@ -37,14 +47,13 @@
     "options_page": "options.html",
     "web_accessible_resources": [
         {
-          "resources": [
-            "/iframe/publish.html",
-            "/iframe/red-packet.html"
-          ],
-          "matches": [
-            "<all_urls>"
-          ]
+            "resources": [
+                "/iframe/publish.html",
+                "/iframe/red-packet.html"
+            ],
+            "matches": [
+                "<all_urls>"
+            ]
         }
-
     ]
-}
+}