Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienne-deriv committed Dec 2, 2024
1 parent b66411c commit fabc839
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/javascript/app/base/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const toISOFormat = require('../../_common/string_util').toISOFormat;
const Url = require('../../_common/url');
const Analytics = require('../../_common/analytics');
const { openChatWithParam } = require('../../_common/utility');
const { requestSingleSignOn } = require('../../_common/auth');
// const { requestSingleSignOn } = require('../../_common/auth');
const createElement = require('../../_common/utility').createElement;
const isLoginPages = require('../../_common/utility').isLoginPages;
const isProduction = require('../../config').isProduction;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -103,7 +103,7 @@ const Page = (() => {
updateLinksURL('#content');
} else {
init();
requestSingleSignOn();
// requestSingleSignOn();
if (!isLoginPages()) {
Language.setCookie(Language.urlLang());
const url_query_strings = Url.paramsHash();
Expand Down
1 change: 1 addition & 0 deletions src/javascript/app/pages/callback/callback.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit fabc839

Please sign in to comment.