From 7182e3f9650e4de9f944d8c4e897fe4a24a3b8bc Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 29 Oct 2025 19:05:58 +0100 Subject: dotnet 10, synapse admin room list improvements --- MatrixUtils.Web/wwwroot/index.html | 7 ++++--- MatrixUtils.Web/wwwroot/sw-registrator.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'MatrixUtils.Web/wwwroot') diff --git a/MatrixUtils.Web/wwwroot/index.html b/MatrixUtils.Web/wwwroot/index.html index f25d549..0a80cff 100644 --- a/MatrixUtils.Web/wwwroot/index.html +++ b/MatrixUtils.Web/wwwroot/index.html @@ -12,6 +12,7 @@ + @@ -49,11 +50,11 @@ } setImageStream = async (element, imageStream) => { - if(!(element instanceof HTMLElement)) { + if (!(element instanceof HTMLElement)) { console.error("Element is not an HTMLElement", element); return; } - + const arrayBuffer = await imageStream.arrayBuffer(); const blob = new Blob([arrayBuffer]); const url = URL.createObjectURL(blob); @@ -65,7 +66,7 @@ } - + diff --git a/MatrixUtils.Web/wwwroot/sw-registrator.js b/MatrixUtils.Web/wwwroot/sw-registrator.js index 94b96b2..67aa5cb 100644 --- a/MatrixUtils.Web/wwwroot/sw-registrator.js +++ b/MatrixUtils.Web/wwwroot/sw-registrator.js @@ -8,7 +8,7 @@ window.updateAvailable = new Promise((resolve, reject) => { return; } - navigator.serviceWorker.register('/service-worker.js') + navigator.serviceWorker.register('/service-worker.js', {updateViaCache: 'none'}) .then(registration => { console.info(`Service worker registration successful (scope: ${registration.scope})`); -- cgit 1.5.1