Skip to content

Commit

Permalink
remove redundant HTTPS check for SW mount
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Apr 10, 2018
1 parent e8c004f commit 33b6672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/lib/lib/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (process.env.NODE_ENV==='development') {
// enable preact devtools
require('preact/debug');
}
else if (process.env.ADD_SW && 'serviceWorker' in navigator && location.protocol === 'https:') {
else if (process.env.ADD_SW && 'serviceWorker' in navigator) {
// eslint-disable-next-line no-undef
navigator.serviceWorker.register(__webpack_public_path__ + 'sw.js');
}
Expand Down

0 comments on commit 33b6672

Please sign in to comment.