码迷,mamicode.com
首页 > 其他好文 > 详细

[PWA] 3. Devtool

时间:2016-05-15 21:35:06      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:

You can debug with chrom dev tool:

 

1. Use console to debug service worker:

技术分享

Swith to sw.js context then you can access ‘self‘ object

 

2. Set breakpoint:

技术分享

You can see all the event object.

 

3. You can see the active service worker:

技术分享

 

4. Once you change the code, you can see the waiting servie worker:

技术分享

 

4. After you close and reopen the page, the waiting service work become the active one.

技术分享

[PWA] 3. Devtool

标签:

原文地址:http://www.cnblogs.com/Answer1215/p/5496129.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!