This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Update dependencies and support folders in the splitter

Because Standard was updated many files were updated with
only whitespace updates.

Unused libraries were removed from build processes.

The splitter now support folders.

Issue #18 wasn't fixed: files dangerous extensions are still
being allowed to be downloaded directly.
  • Loading branch information...
qgustavor committed May 24, 2018
1 parent dcacd62 commit a737c334b7fe3f5008a47e76465d957aa5bcae4e
Showing with 1,607 additions and 3,529 deletions.
  1. +8 −8 dist/main.js
  2. +1,500 −3,451 package-lock.json
  3. +4 −5 package.json
  4. +0 −6 rollup.fallback.js
  5. +0 −6 rollup.splitter.js
  6. +0 −4 rollup.sw.js
  7. +39 −6 src/splitter.js
  8. +56 −43 src/sw.js
View
@@ -27,14 +27,14 @@
if (navigator.serviceWorker && compatible) {
navigator.serviceWorker.register('sw.js', {scope: '.'})
.then(navigator.serviceWorker.ready)
.then(function () {
if (hasFile) {
location.href = location.pathname + '?' + identifier
} else {
location.href = 'https://github.com/qgustavor/direct-mega#direct-mega'
}
}, fallback)
.then(navigator.serviceWorker.ready)
.then(function () {
if (hasFile) {
location.href = location.pathname + '?' + identifier
} else {
location.href = 'https://github.com/qgustavor/direct-mega#direct-mega'
}
}, fallback)
} else if (hasFile) {
fallback()
} else {
Oops, something went wrong.

0 comments on commit a737c33

Please sign in to comment.