Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
amcgee committed Mar 21, 2024
1 parent feede23 commit 4c61b36
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions shell/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ const D2App = React.lazy(() =>
) // Automatic bundle splitting!

const getInjectedBaseUrl = () => {
const baseUrl = document.querySelector('meta[name="dhis2-base-url"]')?.getAttribute("content");
const baseUrl = document
.querySelector('meta[name="dhis2-base-url"]')
?.getAttribute('content')
if (baseUrl && baseUrl !== '__DHIS2_BASE_URL__') {
return baseUrl;
return baseUrl
}
return null;
return null
}

const appConfig = {
Expand Down

0 comments on commit 4c61b36

Please sign in to comment.