Skip to content

Commit 21191ca

Browse files
committed
Make the menus fetcher use the new GH_PAGES_URL
Turns out we were already templating somewhere, so I guess this works well.
1 parent 38df7c6 commit 21191ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/views/menus/menu-github.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import {upgradeMenuItem, upgradeStation} from './lib/process-menu-shorthands'
2020
import {data as fallbackMenu} from '../../../docs/pause-menu.json'
2121
import {tracker} from '../../analytics'
2222
import bugsnag from '../../bugsnag'
23-
const CENTRAL_TZ = 'America/Winnipeg'
23+
import {GH_PAGES_URL} from '../../globals'
2424

25-
const githubMenuBaseUrl = 'https://stodevx.github.io/AAO-React-Native'
25+
const CENTRAL_TZ = 'America/Winnipeg'
2626

2727
type Props = TopLevelViewPropsType & {
2828
name: string,
@@ -59,7 +59,7 @@ export class GitHubHostedMenu extends React.PureComponent<Props, State> {
5959
let stationMenus: StationMenuType[] = []
6060
let corIcons: MasterCorIconMapType = {}
6161
try {
62-
let container = await fetchJson(`${githubMenuBaseUrl}/pause-menu.json`)
62+
let container = await fetchJson(GH_PAGES_URL('pause-menu.json'))
6363
let data = container.data
6464
foodItems = data.foodItems || []
6565
stationMenus = data.stationMenus || []

0 commit comments

Comments
 (0)