2016-09-30 27 views
0

我正在學習如何編寫webextensions。
所以我從零開始複製here的「beastify」擴展名。爲什麼webextension安裝失敗?

但是我的複製版本的安裝失敗。
我不知道爲什麼安裝失敗。

有相同的目錄結構,相同的含義代碼,相同的圖片文件。

我想在manifest.json中有導致安裝失敗的原因。

我的manifest.json:

{ 
    "manifest_version": 2, 
    "name": "Beastify", 
    "version": 1.0, 

    "description": "add a browser action icon to the toolbar. Click the button to choose a beast. The active tab's body content is then replaced with a picture of the choosen beast.", 
    "icons": { 
     "48": "icons/beasts-48.png" 
    }, 

    "permissions": [ 
     "activeTab" 
    ], 

    "browser_action": { 
     "default_icon": "icons/beasts-32.png", 
     "default_title": "Beastify", 
     "default_popup": "popup/choose_beast.html" 
    }, 

    "web_accessible_resources": [ 
     "beasts/frog.jpg", 
     "beasts/turtle.jpg", 
     "beasts/snake.jpg" 
    ] 
} 

回答

1

version值必須是字符串。
請將"version": 1.0,替換爲"version": "1.0",

相關問題