Skip to content

Commit

Permalink
Merge pull request #1446 from GSA/revert-1436-1434-js-console-errors
Browse files Browse the repository at this point in the history
Revert "javascript console errors - challenge.gov #1434"
  • Loading branch information
jdonis authored Oct 14, 2024
2 parents 6bb10fa + 3c139a6 commit 27ae7cd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions assets/client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ const renderRouter = () => (
)

const rootElement = document.getElementById('challenge-gov-react-app')
if (rootElement){
const apiUrl = encodeURI(rootElement.getAttribute('data-api-url'))
const publicUrl = rootElement.getAttribute('data-public-url')
const imageBase = encodeURI(rootElement.getAttribute('data-image-base'))
const bridgeApplyBlocked = rootElement.getAttribute('data-bridge-apply-blocked') != 'false'
ReactDOM.render(renderRouter(), rootElement);
}
const apiUrl = encodeURI(rootElement.getAttribute('data-api-url'))
const publicUrl = rootElement.getAttribute('data-public-url')
const imageBase = encodeURI(rootElement.getAttribute('data-image-base'))
const bridgeApplyBlocked = rootElement.getAttribute('data-bridge-apply-blocked') != 'false'

ReactDOM.render(renderRouter(), rootElement);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
Expand Down

0 comments on commit 27ae7cd

Please sign in to comment.