Added auto-scrolling to chat buffer.
This commit is contained in:
parent
401b9e4fee
commit
e46513cc1a
2 changed files with 56 additions and 1 deletions
|
|
@ -98,14 +98,21 @@ if(config.protocol.toLowerCase() == "https"){
|
|||
cert: fs.readFileSync(config.ssl.cert)
|
||||
};
|
||||
|
||||
//Start HTTPS Server
|
||||
webServer = https.createServer(httpsOptions, app);
|
||||
}catch(err){
|
||||
//If the error has a path
|
||||
if(err.path != null && err.path != ""){
|
||||
//Tell the user to fix their shit
|
||||
console.log(`Error opening key/cert file: ${err.path}`);
|
||||
//Otherwise
|
||||
}else{
|
||||
//Shit our pants
|
||||
console.log("Unknown error occured while starting HTTPS server! Bailing out!");
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
//and run for the hills
|
||||
process.exit();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue