Update code to deal with new paths under src
This commit is contained in:
@ -7,7 +7,7 @@ import * as BuildConfig from 'soapbox/build-config';
|
||||
export const custom = (filename: string, fallback: any = {}): any => {
|
||||
if (BuildConfig.NODE_ENV === 'test') return fallback;
|
||||
|
||||
const modules = import.meta.glob('../../custom/*.json', { eager: true });
|
||||
const modules = import.meta.glob('../custom/*.json', { eager: true });
|
||||
const key = `../../custom/${filename}.json`;
|
||||
|
||||
return modules[key] ? modules[key] : fallback;
|
||||
|
||||
Reference in New Issue
Block a user