1
0
mirror of https://github.com/Daichimarukana/uwuzu.git synced 2026-06-05 03:24:41 +00:00

uwuzu v1.5.0 Combeny

This commit is contained in:
Daichimarukana
2025-05-03 23:17:23 +09:00
parent 579d8de18d
commit 7c328d03f5
66 changed files with 6498 additions and 3152 deletions
+5 -9
View File
@@ -25,15 +25,11 @@ if(isset($_SERVER['HTTP_REFERER'])){
<script>
window.addEventListener('load', function(){
if ("serviceWorker" in navigator) {
navigator.serviceWorker.getRegistration()
.then(registration => {
registration.unregister();
navigator.serviceWorker.register("../../sw.js").then(reg => {
console.log("ServiceWorker OK", reg);
}).catch(err => {
console.log("ServiceWorker BAD", err);
});
});
navigator.serviceWorker.ready.then(function(registration) {
if (registration.active) {
registration.active.postMessage({ action: 'clearCache' });
}
});
}
window.location.href = "<?php echo $back?>";