Skip to content

Commit

Permalink
fix: always legacy tocs
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Feb 13, 2024
1 parent 137aaf2 commit 16ef550
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/AmeyLiveTrainAnnouncements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1054,9 +1054,12 @@ export function LiveTrainAnnouncements<SystemKeys extends string>({
station: selectedCrs,
noBg: '1',
hideSettings: '1',
useLegacyTocNames: useLegacyTocNames ? '1' : '0',
})

if (useLegacyTocNames) {
iframeQueryParams.append('useLegacyTocNames', '1')
}

Object.entries(systemKeyForPlatform)
.filter(([_, system]) => system !== null)
.forEach(([p]) => {
Expand Down

0 comments on commit 16ef550

Please sign in to comment.