Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvandevijver authored Jul 9, 2024
1 parent 32df257 commit c74cfc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/init-swagger-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ function loadSwaggerUI(userOptions = {}) {

const storageKey = 'nelmio_api_auth';

function getAuthorizationsFromStorage(){
function getAuthorizationsFromStorage() {
if (sessionStorage.getItem(storageKey)) {
try {
return JSON.parse(sessionStorage.getItem(storageKey))
return JSON.parse(sessionStorage.getItem(storageKey));
} catch (ignored) {
// catch any errors here so it does not stop script execution
}
Expand Down

0 comments on commit c74cfc4

Please sign in to comment.