Skip to content

Commit 7f953d9

Browse files
Update dotcom-rendering/src/client/sIndicator.ts
Co-authored-by: Daniel Clifton <[email protected]>
1 parent 80f039f commit 7f953d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dotcom-rendering/src/client/sIndicator.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ const displaySIndicatorRoundel = (
5050
'href',
5151
window.location.hostname === 'localhost'
5252
? 'http://localhost:4200/sIndicator'
53-
: `https://syndication.${window.location.hostname
54-
.replace('m.', '')
55-
.replace('www.', '')}/sIndicator`,
53+
: `https://syndication.${window.location.hostname.replace(
54+
/^(m\.|www\.)/i,
55+
'',
56+
)}/sIndicator`,
5657
);
5758

5859
switch (status) {

0 commit comments

Comments
 (0)