Refine mobile layout and PWA paths
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { RadioStation } from './radioTypes.js';
|
||||
|
||||
export async function loadRadioStations(): Promise<RadioStation[]> {
|
||||
const response = await fetch('/data/radio-stations.json');
|
||||
const response = await fetch(`${import.meta.env.BASE_URL}data/radio-stations.json`);
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`Failed to load radio stations: ${response.status}`);
|
||||
|
||||
Reference in New Issue
Block a user