From 3f1d8b438ccdc7383877c133be329fe487646af1 Mon Sep 17 00:00:00 2001 From: Herman Steuernagel Date: Wed, 7 Aug 2024 12:55:49 -0700 Subject: [PATCH] add comment --- public/js/src/admin.js | 2 ++ public/js/src/user.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/public/js/src/admin.js b/public/js/src/admin.js index 397e1c99..5973de14 100755 --- a/public/js/src/admin.js +++ b/public/js/src/admin.js @@ -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(() => { diff --git a/public/js/src/user.js b/public/js/src/user.js index 935f8db9..ed308051 100755 --- a/public/js/src/user.js +++ b/public/js/src/user.js @@ -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(() => {