Skip to content

Commit

Permalink
fix: react warning
Browse files Browse the repository at this point in the history
Workaround to fix a react warning on chrome
  • Loading branch information
VictorVelarde committed Mar 19, 2021
1 parent 3920d65 commit da98a58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion template-sample-app/template/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@

<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap" rel="stylesheet">

<script>
// see https://github.com/facebook/react/issues/20829
if (!crossOriginIsolated) SharedArrayBuffer = ArrayBuffer;
</script>
<script type="text/javascript" src="%PUBLIC_URL%/supportedBrowsers.js"></script>
<script type="text/javascript">
var browserSupported = browserRegex.test(navigator.userAgent);
Expand Down
5 changes: 4 additions & 1 deletion template-skeleton/template/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@

<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap" rel="stylesheet">

<script>
// see https://github.com/facebook/react/issues/20829
if (!crossOriginIsolated) SharedArrayBuffer = ArrayBuffer;
</script>
<script type="text/javascript" src="%PUBLIC_URL%/supportedBrowsers.js"></script>
<script type="text/javascript">
var browserSupported = browserRegex.test(navigator.userAgent);
Expand Down

0 comments on commit da98a58

Please sign in to comment.