We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 807e8ad commit c2864b0Copy full SHA for c2864b0
1 file changed
demos/network-idle.js
@@ -25,8 +25,8 @@ navigator.serviceWorker.getRegistration()
25
function networkIdleCallback(fn, options = {timeout: 0}) {
26
// Call the function immediately if required features are absent
27
if (
28
- !'MessageChannel' in window ||
29
- !'serviceWorker' in navigator ||
+ !('MessageChannel' in window) ||
+ !('serviceWorker' in navigator) ||
30
!navigator.serviceWorker.controller
31
) {
32
DOMContentLoad.then(() => fn({didTimeout: false}));
0 commit comments