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 1680e11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
## 1.0.0-rc.2 (2021-03-12)
- Add improved htmlForFeature in skeleton [#215](https://github.com/CartoDB/carto-react-template/pull/215)
- Fix immutable/serializable checks for redux middleware in skeleton [#216](https://github.com/CartoDB/carto-react-template/pull/216)
- Fix general React warning on SharedArrayBuffer [#218](https://github.com/CartoDB/carto-react-template/pull/218)

## 1.0.0-rc.1 (2021-03-11)
- Add cypress e2e tests in CI [#194](https://github.com/CartoDB/carto-react-template/pull/194)
Expand Down
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 1680e11

Please sign in to comment.