diff --git a/js/all.min.js b/js/all.min.js index 42314ee..6f7d1c5 100755 --- a/js/all.min.js +++ b/js/all.min.js @@ -9,7 +9,17 @@ loadAnalytics.unami = function() { script.setAttribute("data-website-id", "cdb79ddd-06a6-478f-b726-be39b502d6a5"); document.head.appendChild(script); }; +loadAnalytics.cloudflare = function() { + // + let script = document.createElement("script"); + script.setAttribute("defer", ""); + script.setAttribute("src", "https://static.cloudflareinsights.com/beacon.min.js"); + script.setAttribute("data-cf-beacon", '{"token": "e5b0ef8807e74cef81287ac77bd18938"}'); + document.head.appendChild(script); +}; document.addEventListener("DOMContentLoaded", () => { - loadAnalytics.unami(); + // yo why are all analytic providers mid + // loadAnalytics.unami(); + // loadAnalytics.cloudflare(); }) \ No newline at end of file diff --git a/settings.html b/settings.html index 3c885ab..35dcfad 100755 --- a/settings.html +++ b/settings.html @@ -158,6 +158,18 @@ alert("not completed"); } } + async function deleteAllCaches() { + try { + const cacheNames = await caches.keys(); + + await Promise.all( + cacheNames.map(cacheName => { + console.log(`Deleting cache: ${cacheName}`); + return caches.delete(cacheName); + }) + ); + } catch {} + }
@@ -208,10 +220,11 @@not implemented
+download & upload currently unfinished, use the cloud backups
+