From d5a9e2c43e75d5b893c8d332a897397ee31422bf Mon Sep 17 00:00:00 2001 From: Adrienne Rio Date: Mon, 2 Dec 2024 16:28:02 +0800 Subject: [PATCH] chore: debug --- src/javascript/app/base/page.js | 4 ++-- src/javascript/app/pages/callback/callback.jsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/javascript/app/base/page.js b/src/javascript/app/base/page.js index 8e2eeacb751..4c1a94eaee2 100644 --- a/src/javascript/app/base/page.js +++ b/src/javascript/app/base/page.js @@ -60,7 +60,7 @@ const Page = (() => { // reload the page when the client changes account on other pages. if (evt.newValue === '' || !window.is_logging_in) { // eslint-disable-next-line - console.log('we are reloading wtf, window.is_logging_in: ', window.is_logging_in, evt); + console.log('we are reloading wtf, window.is_logging_in: ', window.is_logging_in, evt) reload(); } break; @@ -103,7 +103,7 @@ const Page = (() => { updateLinksURL('#content'); } else { init(); - requestSingleSignOn(); + // requestSingleSignOn(); if (!isLoginPages()) { Language.setCookie(Language.urlLang()); const url_query_strings = Url.paramsHash(); diff --git a/src/javascript/app/pages/callback/callback.jsx b/src/javascript/app/pages/callback/callback.jsx index bbe98f52b80..74483ad45d3 100644 --- a/src/javascript/app/pages/callback/callback.jsx +++ b/src/javascript/app/pages/callback/callback.jsx @@ -65,6 +65,7 @@ const storeClientAccounts = (tokens, account_list) => { const CallbackContainer = () => { const onLoginSuccess = async tokens => { + parent.window.is_logging_in = 1; // this flag is used in base.js to prevent auto-reloading this page let redirect_url; BinarySocket.send({ authorize: tokens.token1 }).then(response => { const account_list = getPropertyValue(response, ['authorize', 'account_list']);