fix bug in start page settings + a bit of progress

This commit is contained in:
janis committed 2023-09-05 10:33:55 +02:00
1 parent a52ec14845
commit 1ad22482a4
4 files changed
+19 -8

No files matched your search

+8 -1
View File
@@ -22,7 +22,14 @@ class StartPageManager {
}
loadStartPagePreferences( startPageName ) {
return JSON.parse( fs.readFileSync( path.join( __dirname + '/../ui/home/templates/' + startPageName + '/startPage.config.html' ) ) );
let conf, options;
try {
conf = JSON.parse( fs.readFileSync( path.join( __dirname + '/../ui/home/templates/' + startPageName + '/startPage.json' ) ) );
options = JSON.parse( fs.readFileSync( path.join( __dirname + '/../ui/home/templates/' + startPageName + '/startPage.config.json' ) ) );
return { 'conf': conf, 'options': options };
} catch ( err ) {
return {};
}
}
findAllStartPageTemplates() {