mirror of
https://github.com/janishutz/libreevent.git
synced 2026-09-22 13:15:25 +02:00
fix bug in start page settings + a bit of progress
This commit is contained in:
1 parent
a52ec14845
commit
1ad22482a4
4 files changed
+19
-8
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user