mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix default import for config files
This commit is contained in:
parent
6c813996ae
commit
8bc8255a3e
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ async function fetchLocal(url, options) {
|
|||
async function getConfig() {
|
||||
if (data) return Promise.resolve(data);
|
||||
try {
|
||||
data = await import('../../config.json');
|
||||
data = (await import('../../config.json')).default;
|
||||
|
||||
console.dir(data);
|
||||
return data;
|
||||
|
@ -55,7 +55,7 @@ async function getConfig() {
|
|||
|
||||
async function getDefaultConfig() {
|
||||
try {
|
||||
data = await import('../../config.template.json');
|
||||
data = (await import('../../config.template.json')).default;
|
||||
|
||||
console.dir(data);
|
||||
return data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue