Skip to content

Commit

Permalink
chore(TMP-1657): fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
seldinpQ committed Dec 3, 2024
1 parent 7d82178 commit b1f3379
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/article-skeleton/src/article-body/article-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,20 @@ import {
} from "../styles/article-body/responsive";

let deckApiUrl;
if (typeof window !== 'undefined') {
const environmentName = window.__TIMES_CONFIG__ && window.__TIMES_CONFIG__.environmentName;
if (typeof window !== "undefined") {
const environmentName =
window.__TIMES_CONFIG__ && window.__TIMES_CONFIG__.environmentName;

if (environmentName === 'prod') {
if (environmentName === "prod") {
deckApiUrl =
'https://editorial-tm.newsapis.co.uk/prod/deck-component-data-api';
"https://editorial-tm.newsapis.co.uk/prod/deck-component-data-api";
} else {
deckApiUrl =
'https://editorial-tm.staging.newsapis.co.uk/staging/deck-component-data-api';
"https://editorial-tm.staging.newsapis.co.uk/staging/deck-component-data-api";
}
} else {
deckApiUrl =
'https://editorial-tm.staging.newsapis.co.uk/staging/deck-component-data-api';
"https://editorial-tm.staging.newsapis.co.uk/staging/deck-component-data-api";
}

const disabledAds = ["c8bf6998-d498-11ed-b5c3-54651fc826e9"];
Expand Down

0 comments on commit b1f3379

Please sign in to comment.