mirror of
https://github.com/janishutz/libreevent.git
synced 2026-09-22 13:15:25 +02:00
start pages settings (BROKEN)
This commit is contained in:
1 parent
bebf53e5eb
commit
a52ec14845
5 files changed
+48
-4
No files matched your search
@@ -25,6 +25,10 @@ class StartPageManager {
|
||||
return JSON.parse( fs.readFileSync( path.join( __dirname + '/../ui/home/templates/' + startPageName + '/startPage.config.html' ) ) );
|
||||
}
|
||||
|
||||
findAllStartPageTemplates() {
|
||||
return fs.readdirSync( path.join( __dirname + '/../ui/home/templates/' ) );
|
||||
}
|
||||
|
||||
setActiveStartPage( startPageName ) {
|
||||
this.settings[ 'startPage' ] = startPageName;
|
||||
fs.writeFileSync( path.join( __dirname + '/../config/settings.config.json' ), JSON.stringify( this.settings ) );
|
||||
|
||||
Reference in new issue
Block a user