about summary refs log tree commit diff
path: root/MatrixUtils.Web/wwwroot/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixUtils.Web/wwwroot/index.html')
-rw-r--r--MatrixUtils.Web/wwwroot/index.html7
1 files changed, 4 insertions, 3 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>