Skip to content

🎧 Your Personal Streaming Service

Fix "SharedArrayBuffer will require cross-origin isolation"

Deluan932c108e8243
diff --git a/ui/public/index.html b/ui/public/index.html
index 47afc9a2c..0c082463a 100644
--- a/ui/public/index.html
+++ b/ui/public/index.html
@@ -33,6 +33,11 @@
<script>
window.__APP_CONFIG__ = "{{.AppConfig}}"
</script>
+ <!-- Issue workaround for React v16. -->
+ <script>
+ // See https://github.com/facebook/react/issues/20829#issuecomment-802088260
+ if (!crossOriginIsolated) SharedArrayBuffer = ArrayBuffer;
+ </script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>