Fix: small fix
This commit is contained in:
@@ -45,8 +45,8 @@ export async function getTrackMapConfig(
|
||||
try {
|
||||
// Try to fetch from openwheels.racing first
|
||||
let configUrl = cleanConfig && cleanConfig !== 'default'
|
||||
? `https://openwheels.racing/files/img/tracks/${cleanTrack}/${cleanConfig}/map.ini`
|
||||
: `https://openwheels.racing/files/img/tracks/${cleanTrack}/map.ini`;
|
||||
? `https://files.openwheels.racing/img/tracks/${cleanTrack}/${cleanConfig}/map.ini`
|
||||
: `https://files.openwheels.racing/img/tracks/${cleanTrack}/map.ini`;
|
||||
|
||||
let response = await fetch(configUrl);
|
||||
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ export function formatTrackName(trackName: string): string {
|
||||
* Handles the track name cleaning and URL construction
|
||||
*/
|
||||
export function getTrackMapUrl(trackName: string, trackConfig?: string): string {
|
||||
const baseUrl = 'https://openwheels.racing/files/img/tracks';
|
||||
const baseUrl = 'https://files.openwheels.racing/img/tracks';
|
||||
const cleanedTrack = cleanTrackName(trackName);
|
||||
const cleanedConfig = trackConfig ? cleanTrackConfig(trackConfig) : '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user