sw.js 808 B

12345678910111213141516171819202122232425262728
  1. self.addEventListener('install', function(e) {
  2. e.waitUntil(
  3. caches.open('deezloader').then(function(cache) {
  4. return cache.addAll([
  5. '/',
  6. '/index.html',
  7. '/js/socket.io.js',
  8. '/js/jquery-3.3.1.min.js',
  9. '/js/materialize.min.js',
  10. '/js/vue.min.js',
  11. '/js/appBase.js',
  12. '/js/frontend.js',
  13. '/css/animate.css',
  14. '/css/darkMode.css',
  15. '/css/material-icons.css',
  16. '/css/materialize.min.css',
  17. '/css/style.css',
  18. '/fonts/icons/MaterialIcons-Regular.woff2',
  19. '/fonts/roboto/Roboto-Bold.woff2',
  20. '/fonts/roboto/Roboto-Light.woff2',
  21. '/fonts/roboto/Roboto-Medium.woff2',
  22. '/fonts/roboto/Roboto-Regular.woff2',
  23. '/fonts/roboto/Roboto-Thin.woff2'
  24. ]);
  25. })
  26. );
  27. });