parent
0afe61add2
commit
2af757d5bd
12 changed files with 83 additions and 9 deletions
src/utils
|
@ -7,8 +7,8 @@ export function plsLoadImage(record: ImportRecord<GlobImage>, path: string) {
|
|||
return loadedImage
|
||||
}
|
||||
|
||||
export async function plsLoadTAEntry(key: string) {
|
||||
const filecontent = (await getEntry('taInfoData', key))?.data
|
||||
export async function plsLoadTAEntry(key: string, file: "taInfoData" | "teslafest" = 'taInfoData') {
|
||||
const filecontent = (await getEntry(file, key))?.data
|
||||
if (!filecontent) throw new Error(`Datafile was not found for key ${key}`)
|
||||
return filecontent
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue