Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/containers/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ const Index = (props) => {
} else {
setBackOffice(false);
}
} else {
// if no realm_access set, default to not using the back office
setBackOffice(false);
}
console.log('isBackOffice: ' + isBackOffice);
}
useEffect(() => {
FHIR.oauth2.ready().then(client => {
Expand Down
9 changes: 8 additions & 1 deletion src/containers/Launch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ const Launch = props => {
localStorage.setItem('clients', JSON.stringify(clients));
}
}
const params = queryString.parse((window.location.hash || '').replace(/\/?#\/?launch\?/, ''));

let params = queryString.parse((window.location.hash || '').replace(/\/?#\/?launch\?/, ''));

// if no hash # value, pull the parameters out of the search
if (!params.iss) {
params = queryString.parse((window.location.search || '').replace(/\/?#?\/?[launch]?\?/, ''));
}

const iss = params.iss;
console.log('iss: ' + iss);
const launch = params.launch;
Expand Down
Loading