2017-06-15 75 views
0

我建立phonegap应用程序使用聚合物,但应用程序启动时,我调试它在铬我看到控制台中的以下错误。服务工作者与文件:/ /起源不起作用

Uncaught (in promise) DOMException: Failed to register a ServiceWorker: The URL protocol of the current origin ('file://') is not supported.

任何人都知道如何使用服务工作者的file://来历?

+0

我从这里得到了答案! https://stackoverflow.com/questions/39136625/service-worker-registration-failed –

回答