Skip to content

Commit

Permalink
Small update
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVeit committed Jun 28, 2024
1 parent 85f8136 commit 934dfea
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 2 deletions.
Binary file modified Build/Veittech-UnitonConnect-WebPage.data.unityweb
Binary file not shown.
Binary file modified Build/Veittech-UnitonConnect-WebPage.framework.js.unityweb
Binary file not shown.
2 changes: 1 addition & 1 deletion Build/Veittech-UnitonConnect-WebPage.loader.js

Large diffs are not rendered by default.

Binary file modified Build/Veittech-UnitonConnect-WebPage.wasm.unityweb
Binary file not shown.
27 changes: 27 additions & 0 deletions ServiceWorker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
const cacheName = "Veittech-Uniton Connect-1.0";
const contentToCache = [
"Build/Veittech-UnitonConnect-WebPage.loader.js",
"Build/Veittech-UnitonConnect-WebPage.framework.js.unityweb",
"Build/Veittech-UnitonConnect-WebPage.data.unityweb",
"Build/Veittech-UnitonConnect-WebPage.wasm.unityweb",
"TemplateData/style.css"

];

self.addEventListener('install', function (e) {
console.log('[Service Worker] Install');

e.waitUntil((async function () {
const cache = await caches.open(cacheName);
console.log('[Service Worker] Caching all: app shell and content');
await cache.addAll(contentToCache);
})());
});

self.addEventListener('fetch', function (e) {
e.respondWith((async function () {
let response = await caches.match(e.request);
console.log(`[Service Worker] Fetching resource: ${e.request.url}`);
if (response) { return response; }

response = await fetch(e.request);
const cache = await caches.open(cacheName);
console.log(`[Service Worker] Caching new resource: ${e.request.url}`);
cache.put(e.request, response.clone());
return response;
})());
});
1 change: 1 addition & 0 deletions dAppData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"url":"https://mrveit.github.io/Uniton-Connect/","name":"Uniton Connect","iconUrl":"https://mrveit.github.io/Uniton-Connect/icon.png"}
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</head>
<body>
<div id="unity-container">
<canvas id="unity-canvas" width=1920 height=1080 tabindex="-1"></canvas>
<canvas id="unity-canvas" width=1080 height=1920 tabindex="-1"></canvas>
<div id="unity-loading-bar">
<div id="unity-logo"></div>
<div id="unity-progress-bar-empty">
Expand Down

0 comments on commit 934dfea

Please sign in to comment.