Skip to content

Commit

Permalink
Fix "SharedArrayBuffer will require cross-origin isolation"
Browse files Browse the repository at this point in the history
This is a workaround for React v16 while we don't upgrade to v17

See facebook/create-react-app#10474
  • Loading branch information
deluan committed Apr 29, 2021
1 parent 20d2726 commit 932c108
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 932c108

Please sign in to comment.