Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hsteuernagel committed Aug 7, 2024
1 parent 678f5c9 commit 3f1d8b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/js/src/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ apolloClient.query({ query: MeQuery })
}
})
.catch(() => {
// fix for Brave browser - it doesn't send the cookie with the first JS request on the initial load
// after the page is refreshed, it's fine
alert('There was an error loading the page. The page not work as expected. Please refresh the page.');
})
.finally(() => {
Expand Down
3 changes: 3 additions & 0 deletions public/js/src/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ apolloClient.query({ query: MeQuery })
}
})
.catch(() => {
// fix for Brave browser - it doesn't send the cookie with the first JS request on the initial load
// after the page is refreshed, it's fine

alert('There was an error loading the page. The page not work as expected. Please refresh the page.');
})
.finally(() => {
Expand Down

0 comments on commit 3f1d8b4

Please sign in to comment.