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

绕开chrome应用商店,也能达到用户一次安装永久更新的功能 #3

Open
weijian-zhu opened this issue Dec 7, 2021 · 1 comment

Comments

@weijian-zhu
Copy link
Owner

思路:
1.代码打包成umd格式
2.用户使用该插件的时候,检查是否有网的情况,发送请求,把服务器上托管的最新按照umd格式打包后的代码请求回来,通过eval/Function执行
3.请求回来的代码,缓存在用户本地
4.没网的情况下,用户使用的时候,读缓存中的代码,有网的时候发请求更新缓存中的代码

@weijian-zhu
Copy link
Owner Author

无服务器,暂搁

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

1 participant