add startPage settings files

This commit is contained in:
2023-09-05 13:15:36 +02:00
parent 1ad22482a4
commit cc57a8b80a
5 changed files with 49 additions and 9 deletions

View File

@@ -24,8 +24,8 @@ class StartPageManager {
loadStartPagePreferences( startPageName ) {
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' ) ) );
options = JSON.parse( fs.readFileSync( path.join( __dirname + '/../ui/home/templates/' + startPageName + '/startPage.json' ) ) );
conf = JSON.parse( fs.readFileSync( path.join( __dirname + '/../ui/home/templates/' + startPageName + '/startPage.config.json' ) ) );
return { 'conf': conf, 'options': options };
} catch ( err ) {
return {};