microsoft-edge - 边缘扩展:扩展清单的验证失败
问题描述
在审查了我的 Edge 扩展后,我获得了将其提交到商店的批准。但是,提交失败并出现此错误。
'background.page' 指定的文件不存在:Extension\PopupApplication\app\index.html?background=1
扩展清单验证失败:Extension\manifest.json
中的相关部分manifest.json
如下所示:
"background": {
"page": "PopupApplication/app/index.html?background=1",
"persistent": true
}
似乎验证不允许background.page
属性中的查询参数。但我的逻辑需要参数。是否有任何解决方法或者我必须更改我的应用程序逻辑?
Edge 扩展在本地运行良好。它也适用于 Chrome 和 Firefox。我已经使用Microsoft edge Extension Toolkit来移植 Chrome 扩展。
编辑:简化的文件夹结构如下所示
+ Assets
+ Extension
|----+ PopupApplication
|----+ app
|--------+ index.html
|----+ manifest.json
解决方案
解决方法是更改我们的代码以成功提交边缘扩展。提交不允许background.page
属性中的查询参数。微软支持部门证实了这一点。
推荐阅读
- git - 是否有可能知道文件是否存在于 git 存储库的文件夹中?
- php - 在一个查询中更新多个表
- javascript - 在输入键VueJS上执行方法?
- javascript - ant.design 表未更新
- vb.net - 在三个面板之间交换位置
- python - 如何动态使用 Python 的类型提示来指示返回值与参数的类型相同
- django - Django Channels 2.x 还是 Ajax?
- certificate - 本地主机 您的连接不是私有的
- java - RestAssured:如何遍历 JSON 对象并验证关键字段的每个值
- php - Magento 错误:函数名称必须是字符串