是否可以在ServiceWorker中注册自定义协议(protocol)。我的意思是使用 registerProtocolHandler 还是其他什么?我的服务器返回我的 js 应用程序需要处理的自定义协议(protocol)?
最佳答案
这是不可能的。根据规范,只会拦截 http
和 https
( step 9 in Main fetch )。
关于javascript - 注册ProtocolHandler和ServiceWorker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35286209/