Skip to content

Commit

Permalink
Merge pull request #1199 from tomivm/fix/adtest-on-qa
Browse files Browse the repository at this point in the history
fix 'or' sintax on hostname comparision
  • Loading branch information
martinbedouret authored May 4, 2022
2 parents 99def6d + 079f867 commit 2e6642b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ export const AZURE_VOICES_BASE_PATH_API =
// AdSense constants

const NODE_ENV = process.env.NODE_ENV;
const HOSTNAME = window.location.hostname;
export const ADSENSE_ON_PRODUCTION =
window.location.hostname === 'app.cboard.io' && NODE_ENV === 'production';
HOSTNAME === 'app.cboard.io' && NODE_ENV === 'production';
export const ADTEST_AVAILABLE =
window.location.hostname === ('app.dev.cboard.io' || 'app.qa.cboard.io');
HOSTNAME === 'app.dev.cboard.io' || HOSTNAME === 'app.qa.cboard.io';
export const ADSENSE_CLIENT = 'ca-pub-7162313874228987';

export const ADD_SLOT_SETTINGS_TOP = '5250438005';

0 comments on commit 2e6642b

Please sign in to comment.