Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
meirish committed Oct 11, 2019
1 parent 7fa42ce commit b6e2187
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/app/components/raft-storage-overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ export default Component.extend({
if (this.useServiceWorker === false) {
return;
}
// check to see if we support ServiceWorker
if ('serviceWorker' in navigator) {
// this checks to see if there's an active service worker - if it failed to register
// for any reason, then this would be null
let worker = await navigator.serviceWorker.getRegistration(config.serviceWorkerScope);
if (worker) {
this.set('useServiceWorker', true);
Expand Down

0 comments on commit b6e2187

Please sign in to comment.