-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c9d6fc8
Showing
8 changed files
with
5,276 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html lang="en"><head><title>portal</title><meta charset="UTF-8" /><meta content="width=device-width, initial-scale=1" name="viewport" /><link href="manifest.json" rel="manifest" /><meta content="#272c36" name="theme-color" /></head><body style="background:#2e3440;margin:0;min-height:100vh;overflow:hidden;"><div id="root"></div><script src="main.js"></script></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"description":"A clojure tool to navigate through your data.","display_override":["minimal-ui"],"start_url":"https://djblue.github.io/portal/","name":"portal","handle_links":"preferred","scope":"https://djblue.github.io/portal/","short_name":"Portal","icons":[{"type":"image/svg+xml","sizes":"512x512","src":"icon.svg"}],"display":"standalone"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
self.addEventListener('fetch', function(event) { | ||
if ((event.request.url.indexOf('http') === 0)) { | ||
console.log('[Service Worker] Fetched resource ' + event.request.url) | ||
event.respondWith( | ||
caches.open('portal-cache').then(function (cache) { | ||
return fetch(event.request).then(function(response) { | ||
cache.put(event.request, response.clone()) | ||
return response | ||
}).catch(function() { | ||
return caches.match(event.request) | ||
}) | ||
}) | ||
) | ||
} | ||
}) |