'套接字'不允许指定的包类型(主题,应用程序等) [英] 'socket' is not allowed for specified package type (theme, app, etc.)
问题描述
适用于套接字的Chrome API现在不适用于我。
我有以下清单:
<$
name:我的名字,
version:0.1,
manifest_version:2,
背景:{
page:background.html
},
browser_action:{
default_icon:ico16.png,
default_title:我的扩展名,
default_popup:popup.html
,
description:bla bla bla,
minimum_chrome_version :23,
图标:{
ico128:ico128.png,
ico16:ico16.png,
icon_logo: icon_logo.png
},
options_page:options.html,
permissions:[experimental,
{socket:[
udp-send-to
]},
notifications,
background]
}
但是在加载扩展程序时显示以下警告n:
'套接字'不适用于指定的封装类型(主题,应用等)。
我已经用Version 23.0.1246.0 canary和23.0.1246.0 dev-m进行了测试
这是预期的行为,套接字API仅适用于打包应用程序,并基于您正在使用扩展程序的清单。
Chrome API for sockets is not working now for me.
I've got following manifest:
{
"name": "My name",
"version": "0.1",
"manifest_version": 2,
"background": {
"page": "background.html"
},
"browser_action": {
"default_icon": "ico16.png",
"default_title": "My extension",
"default_popup": "popup.html"
},
"description": "bla bla bla",
"minimum_chrome_version": "23",
"icons": {
"ico128": "ico128.png",
"ico16": "ico16.png",
"icon_logo": "icon_logo.png"
},
"options_page": "options.html",
"permissions": ["experimental",
{"socket": [
"udp-send-to"
]},
"notifications",
"background"]
}
but following warning it's been displayed when loading the extension:
'socket' is not allowed for specified package type (theme, app, etc.).
I've tested with Version 23.0.1246.0 canary and 23.0.1246.0 dev-m
This is expected behavior, the socket API is only available to packaged apps, and based on the manifest you're working on an extension.
这篇关于'套接字'不允许指定的包类型(主题,应用程序等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!