IntelliSense for navigator.serviceWorker

Hi,

when I use serviceworkers I always have warning about unresolved variable serviceWorker.

Does Webstorm know about service workers or do I use it somehow wrongly?

Thanks,
Petr

2 comments
Comment actions Permalink

WebStorm doesn't come with predefined library for Service Worker API (https://youtrack.jetbrains.com/issue/WEB-20529).

I can suggest downloading service_worker_api.d.ts library using Settings | Languages & frameworks | JavaScript | Libraries, Download...

0
Comment actions Permalink

Great! Thanks a lot!

0

Please sign in to leave a comment.