%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/management-fe/
Upload File :
Create Path :
Current File : /var/www/html/management-fe/sw.js

importScripts('/static/workbox-sw.prod.v2.1.2.js');

// Note: Ignore the error that Glitch raises about WorkboxSW being undefined.
const workbox = new WorkboxSW({
  skipWaiting: true,
  clientsClaim: true
});


workbox.router.registerRoute(
  new RegExp('^http://127.0.0.1:8081'),
  workbox.strategies.staleWhileRevalidate()
);


self.addEventListener('push', (event) => {
  const title = (event.data && event.data.text()) || 'Yay a message';
  const body = 'We have received a push message';
  const tag = 'push-simple-demo-notification-tag';
  const icon = 'static/img/icons/android-chrome-512x512.png';

  event.waitUntil(
    self.registration.showNotification(title, {
      body,
      icon,
      tag,
    }),
  );
});


workbox.precache([
  {
    "url": "/index.html",
    "revision": "b841359b0d018a103ac49192759b4606"
  },
  {
    "url": "/static/css/app.2d53361390f965726c30c6918c1e7dc8.css",
    "revision": "cd451a460f566f8440fb4c41df778bb1"
  },
  {
    "url": "/static/js/app.a16842bed48e9d6dab62.js",
    "revision": "2d3adb02d5f2f2e634adcb04b046b1fd"
  },
  {
    "url": "/static/js/manifest.9713b083aac31e9bc01b.js",
    "revision": "229476881a53f1daf4a1309cb3a6fbe7"
  },
  {
    "url": "/static/js/vendor.f276a977a2e1d33e93fb.js",
    "revision": "d96a7490c302584fe078ad6f17701bdb"
  },
  {
    "url": "/static/swloader.js",
    "revision": "a393224ddc4e28b74bc1fa744b60a2e4"
  },
  {
    "url": "/static/workbox-sw.prod.v2.1.2.js",
    "revision": "685d1ceb6b9a9f94aacf71d6aeef8b51"
  },
  {
    "url": "sw.js",
    "revision": "d7050d3fcb98d22605be895aee9294fb"
  }
]);

Zerion Mini Shell 1.0