【发布时间】:2013-11-29 07:16:23
【问题描述】:
我需要知道如何在安装扩展程序时显示一个弹出窗口。我想问的是,当我安装我的扩展程序时,在那一刻本身,应该打开一个弹出窗口询问用户名和密码。我该怎么做?我不熟悉这个问题。 这是我的 manifest.json
{
"name": "Calpine Extension",
"version": "1.0",
"description": "Log on to calpinemate",
"manifest_version": 2,
"browser_action": {
"default_icon": "icon_128.png"
},
"background": {
"persistent": false,
"scripts": ["background.js"]
},
"browser_action": {
"default_title": "Calpine Extension",
"default_icon": "calpine_not_logged_in.png"
},
"permissions": [
"*://blog.calpinetech.com/test/index.php",
"alarms",
"notifications"
],
"web_accessible_resources": [
"/icon_128.png"]
}
【问题讨论】:
-
你的清单中有两次
browser_action,你应该只有一次。
标签: google-chrome-extension popupwindow