谷歌浏览器Chrome:Failed to load extension

问题背景

问题是小虎在用谷歌浏览器添加插件时添加不了,出现Failed to load extension。
在这里插入图片描述
The “background.scripts” key cannot be used with manifest_version 3. Use the “background.service_worker” key instead. Could not load manifes

解决办法

在这里插入图片描述
修改manifest.json文件,将第22行代码去掉,将21行代码的逗号去掉,然后将scripts改为server_worker即可。
在这里插入图片描述

发布了82 篇原创文章 · 获赞 70 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/Davidietop/article/details/105212196