Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Speed up SW activation
Browse files Browse the repository at this point in the history
  • Loading branch information
Annamalai committed Feb 1, 2016
1 parent 60b7348 commit c125976
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ self.addEventListener('install', function(event) {
'/scripts/index.js',
'/images/js.png',
'/images/not-found.png'
]);
])
}).then(function(){
self.skipWaiting();
})
);
});
Expand Down

0 comments on commit c125976

Please sign in to comment.