【发布时间】:2017-06-15 10:16:17
【问题描述】:
我使用聚合物构建了 phonegap 应用程序,但是当应用程序启动并在 chrome 中调试它时,我在控制台中看到以下错误。
Uncaught (in promise) DOMException: Failed to register a ServiceWorker: The URL protocol of the current origin ('file://') is not supported.
有人知道如何使用带有 file:// 来源的 service worker 吗?
【问题讨论】:
-
我从这里得到了答案!! stackoverflow.com/questions/39136625/…
标签: javascript polymer service-worker phonegap