about summary refs log tree commit diff
path: root/MatrixUtils.Web/wwwroot
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixUtils.Web/wwwroot')
-rw-r--r--MatrixUtils.Web/wwwroot/index.html7
-rw-r--r--MatrixUtils.Web/wwwroot/sw-registrator.js2
2 files changed, 5 insertions, 4 deletions
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 @@ <link rel="apple-touch-icon" sizes="512x512" href="icon-512.png"/> <link href="favicon.png" rel="icon" type="image/png"/> <link href="MatrixUtils.Web.styles.css" rel="stylesheet"/> + <link rel="preload" id="webassembly"/> </head> <body> @@ -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 @@ } </script> <script src="_framework/blazor.webassembly.js"></script> -<!-- <script>navigator.serviceWorker.register('service-worker.js');</script>--> + <!-- <script>navigator.serviceWorker.register('service-worker.js');</script>--> <script src="sw-registrator.js"></script> </body> 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})`);