提交 29fdea6d 编写于 作者: S Sebastian Benz 提交者: Tim Neutkens
上级 dc0c9409
......@@ -27,7 +27,7 @@ const Layout = props => (
<AmpIncludeAmpInstallServiceworker />
<amp-install-serviceworker
src="/serviceworker.js"
data-iframe-src="/install-sw.html"
data-iframe-src="/install-serviceworker.html"
layout="nodisplay"
/>
......
......@@ -2,6 +2,6 @@
<title>installing service worker</title>
<script type="text/javascript">
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js')
navigator.serviceWorker.register('/serviceworker.js')
}
</script>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册