automatic main page fix, see #10

This commit is contained in:
v 2019-01-31 12:50:14 +03:00
parent 5eb0875b56
commit e06f3c770b

View File

@ -1409,8 +1409,9 @@ async function initialise () {
if ( await fs.exists( metadata )) {
preProcessed = true
try {
mainPage.urlKey = await fs.readFile( osPath.join( srcPath, 'mainpage' ))
mainPage.urlKey = 'A' + ( await fs.readFile( osPath.join( srcPath, 'mainpage' ))).toString()
} catch ( err ) {
warning( 'mainpage error', err )
}
await openMetadata( metadata )
return loadMimeTypes()