about summary refs log tree commit diff stats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/pico-cam/index.html8
-rw-r--r--js/pico-cam/service-worker.js6
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) {