Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service Worker (无效) #113

Open
cowpy opened this issue Nov 9, 2022 · 6 comments
Open

Service Worker (无效) #113

cowpy opened this issue Nov 9, 2022 · 6 comments

Comments

@cowpy
Copy link

cowpy commented Nov 9, 2022

老哥,直接下载 源码压缩包 从chrome 里面加载 插件,一直提示 Service Worker (无效) 是咋肥事呀,
如果加载 extension-v2 版本会提示 Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.

这个咋整的,我浏览器版本有问题?

有时候google搜索能打开,有时候又不行,朦朦的。。

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Nov 9, 2022

“提示 Service Worker (无效)” 那就不用管了,不是错误哈 。因为本质上就不是 Service Worker 。只不过类似 Service Worker ,用于调试而已!

你可以看看真正的的Service Worker Sample 是什么样子。以及Service Worker 有什么用。

重点:

“提示 Service Worker (无效)” 并不是问题哈。只要没啥报错就行 (你把开发者模式关闭 ,就看不到这个提示了)

google 搜索能否打开和本插件无关啊。

因为本插件的作用只是提供一个地址重定向功能。

本扩展不是提供 google 搜索服务

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Nov 9, 2022

谷歌要求:

2022 年 1 月 17 日 :Chrome 网上应用店将不再接受新的 Manifest V2 扩展。 开发者仍可推送现有 Manifest V2 扩展的更新,但不得提交新的 Manifest V2 项目。

2023 年 1 月 :Chrome 浏览器将不再运行 Manifest V2 扩展程序。 开发人员可能不再向现有 Manifest V2 扩展推送更新。

@jingjingxyk
Copy link
Contributor

老哥,直接下载 源码压缩包 从chrome 里面加载 插件,一直提示 Service Worker (无效) 是咋肥事呀, 如果加载 extension-v2 版本会提示 Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.

这个咋整的,我浏览器版本有问题?

有时候google搜索能打开,有时候又不行,朦朦的。。

用默认版本就行。你运行的并没有错误和问题

@jingjingxyk
Copy link
Contributor

你的浏览器也没有问题哈

@jingjingxyk
Copy link
Contributor

打开 开发模式,与未打开开发模式的区别
image
image

@jingjingxyk
Copy link
Contributor

V2版本并不是报错,而是谷歌关于扩展的规则变了

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants