Use es6 notation in defaults

This commit is contained in:
rejas
2021-04-17 16:39:20 +02:00
parent 7bc71029de
commit 3b4432cb00
2 changed files with 6 additions and 9 deletions

View File

@@ -6,12 +6,12 @@
* By Michael Teeuw https://michaelteeuw.nl
* MIT Licensed.
*/
var address = "localhost";
var port = 8080;
const address = "localhost";
let port = 8080;
if (typeof mmPort !== "undefined") {
port = mmPort;
}
var defaults = {
const defaults = {
address: address,
port: port,
basePath: "/",