Skip to content

Commit

Permalink
Create uv.sw-handler.js
Browse files Browse the repository at this point in the history
  • Loading branch information
accessgames authored Nov 29, 2023
1 parent 2025f9b commit e9e0ecb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions uv.sw-handler.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
importScripts('/uv/uv.bundle.js');
importScripts('/uv/uv.config.js');
importScripts(__uv$config.sw || '/uv/uv.sw.js');

const sw = new UVServiceWorker();
self.addEventListener('fetch', event => {
event.respondWith(sw.fetch(event))
});

0 comments on commit e9e0ecb

Please sign in to comment.