Skip to content

Commit

Permalink
chore: added comments and test remove webpack alias
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienne-deriv committed Nov 27, 2024
1 parent 7980d38 commit 46228db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions build/webpack/config_common.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');
const publicPathFactory = require('./helpers').publicPathFactory;

Expand Down Expand Up @@ -30,9 +29,6 @@ const commonConfig = (grunt) => ({
},
resolve: {
extensions: ['.js', '.jsx'],
alias: {
'react/jsx-runtime': 'react/jsx-runtime.js',
},
},
module: {
rules: [
Expand Down
2 changes: 2 additions & 0 deletions src/javascript/_common/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ export const requestSingleSignOn = async () => {
const isGrowthbookLoaded = Analytics.isGrowthbookLoaded();
if (!isGrowthbookLoaded) {
let retryInterval = 0;
// this interval is to check if Growthbook is already initialised.
// If not, keep checking it (max 10 times) and SSO if conditions are met
const interval = setInterval(() => {
if (retryInterval > 10) {
clearInterval(interval);
Expand Down

0 comments on commit 46228db

Please sign in to comment.