Skip to content

Commit

Permalink
USF-1918: Sharepoint documents have a two-tier structure with English…
Browse files Browse the repository at this point in the history
… as the default

- fix lint
  • Loading branch information
anthoula committed Jan 27, 2025
1 parent cbc298f commit 33032c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export const calcEnvironment = () => {
*/
export function getStoreCode() {
let code = '';
const match = window.location.pathname.match(/^\/([a-z]{2})\/*/);
if (match !== null) {
code = match[1];
const [, lang] = window.location.pathname.match(/^\/([a-z]{2})\/*/);
if (lang !== null) {
code = lang;
}

return code;
Expand All @@ -53,7 +53,7 @@ function buildConfigURL(environment) {
if (storeCode) {
configURL = new URL(`${window.location.origin}/${storeCode}/${fileName}`);
}
console.log(configURL);
console.log('configURL: ', configURL);

Check failure on line 56 in scripts/configs.js

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement

Check failure on line 56 in scripts/configs.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 2 spaces but found 0
return configURL;
}

Expand Down

0 comments on commit 33032c8

Please sign in to comment.