diff options
author | elioat <elioat@tilde.institute> | 2024-06-30 21:15:06 -0400 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2024-06-30 21:15:06 -0400 |
commit | 822824c79ec0da595001c4448ae98d89ea8a4745 (patch) | |
tree | 34b09f65f98ebd0a51fd64bd34491b38bedb91ad | |
parent | e60e1d7b8b3ba262729152c0eba184898632e655 (diff) | |
download | tour-822824c79ec0da595001c4448ae98d89ea8a4745.tar.gz |
*
-rw-r--r-- | js/pico-cam/index.html | 8 | ||||
-rw-r--r-- | js/pico-cam/service-worker.js | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/js/pico-cam/index.html b/js/pico-cam/index.html index e0e1f21..e2df073 100644 --- a/js/pico-cam/index.html +++ b/js/pico-cam/index.html @@ -4,8 +4,8 @@ <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Pico Cam</title> - <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> - <link rel="icon" href="favicon.ico" type="image/x-icon"> + <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon"> + <link rel="icon" href="./favicon.ico" type="image/x-icon"> <meta name="theme-color" content="#EEE1C6"> <meta name="description" content="For those times when you need a Gameboy camera but only have a phone."> <style> @@ -81,12 +81,12 @@ <video id="webcam" autoplay playsinline style="display:none;"></video> <canvas id="ditheredOutput"></canvas> </div> - <script src="pico-cam.js"></script> + <script src="./pico-cam.js"></script> <script> // Check if Service Workers are supported if ('serviceWorker' in navigator) { window.addEventListener('load', function() { - navigator.serviceWorker.register('service-worker.js').then(function(registration) { + navigator.serviceWorker.register('./service-worker.js').then(function(registration) { // Registration was successful console.log('ServiceWorker registration successful with scope: ', registration.scope); }, function(err) { diff --git a/js/pico-cam/service-worker.js b/js/pico-cam/service-worker.js index a564fad..a64353c 100644 --- a/js/pico-cam/service-worker.js +++ b/js/pico-cam/service-worker.js @@ -1,8 +1,8 @@ var CACHE_NAME = 'pico-cam-v1'; var urlsToCache = [ - '/', - '/index.html', - '/pico-cam.js' + './', + './index.html', + './pico-cam.js' ]; self.addEventListener('install', function(event) { |