Skip to content

Commit

Permalink
Merge pull request #112 from eco-stake/fix-simpleanalytics
Browse files Browse the repository at this point in the history
Embed analytics in HTML
  • Loading branch information
tombeynon authored Oct 8, 2024
2 parents 4640798 + c11a52c commit 6d1b4fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
--build-arg BUGSNAG_KEY="${{ secrets.BUGSNAG_KEY }}" --build-arg MAINNET_DOMAIN="restake.app" --build-arg TESTNET_DOMAIN="testnet.restake.app" --build-arg TESTNET_MODE="1"
docker tag ghcr.io/${{ github.repository }}:${GITHUB_REF#refs/tags/}-testnet ghcr.io/${{ github.repository }}:latest-testnet
docker push ghcr.io/${{ github.repository }}:${GITHUB_REF#refs/tags/}-testnet
docker push ghcr.io/${{ github.repository }}:latest-testnet
docker push ghcr.io/${{ github.repository }}:latest-testnet
2 changes: 2 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script async defer src="https://sa.restake.app/latest.js"></script>
<noscript><img src="https://sa.restake.app/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
</body>
</html>
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ if (process.env.BUGSNAG_KEY) {
enabledReleaseStages: ['production', 'staging'],
releaseStage: process.env.NODE_ENV
})

const ErrorBoundary = Bugsnag.getPlugin('react')
.createErrorBoundary(React)

root.render(
<ErrorBoundary>
{app}
Expand Down

0 comments on commit 6d1b4fc

Please sign in to comment.