GWT Chrome Extension with manifest_version: 2

半腔热情 提交于 2019-12-22 14:15:44

问题


Has any one been able to make a Chrome extension using GWT and manifest_version 2? I have sandboxed all the GWT generated files also (as suggested here) but it still does not work.

manifest.json

{
  "name": "Hello World!",
  "description": "My first packaged app.",
  "manifest_version": 2,
  "version": "0.1",
  "app": {
    "background": {
      "scripts": ["background.js"]
    }
  },
  "permissions": ["experimental", "appWindow"],
  "icons": { "16": "calculator-16.png", "128": "calculator-128.png" }
}

background.js

chrome.experimental.app.onLaunched.addListener(function() {
    chrome.appWindow.create('LocalWebApp.html', {
        'width': 400,
        'height': 500
    });
});

Vishal

来源:https://stackoverflow.com/questions/11469013/gwt-chrome-extension-with-manifest-version-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!