Fix "SharedArrayBuffer will require cross-origin isolation"
This is a workaround for React v16 while we don't upgrade to v17 See https://github.com/facebook/create-react-app/issues/10474
This commit is contained in:
parent
20d2726faa
commit
932c108e82
1 changed files with 5 additions and 0 deletions
|
|
@ -33,6 +33,11 @@
|
||||||
<script>
|
<script>
|
||||||
window.__APP_CONFIG__ = "{{.AppConfig}}"
|
window.__APP_CONFIG__ = "{{.AppConfig}}"
|
||||||
</script>
|
</script>
|
||||||
|
<!-- Issue workaround for React v16. -->
|
||||||
|
<script>
|
||||||
|
// See https://github.com/facebook/react/issues/20829#issuecomment-802088260
|
||||||
|
if (!crossOriginIsolated) SharedArrayBuffer = ArrayBuffer;
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue