简体   繁体   English

registerProtocolHandler和ServiceWorker

[英]registerProtocolHandler and ServiceWorker

is it possible to register custom protocol in ServiceWorker. 是否可以在ServiceWorker中注册自定义协议。 I mean using registerProtocolHandler or anything else? 我的意思是使用registerProtocolHandler或其他任何东西? My server returning custom protocol that my js app need to handle this? 我的服务器返回了我的js应用程序需要处理的自定义协议?

It is not possible. 这不可能。 Per specification, only http and https will be intercepted ( step 9 in Main fetch ). 根据规范,仅httphttps将被拦截( Main fetch中的第9步 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM