diff --git a/js/defaults.js b/js/defaults.js index 8a890bc5..0173a594 100644 --- a/js/defaults.js +++ b/js/defaults.js @@ -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: "/", diff --git a/modules/default/defaultmodules.js b/modules/default/defaultmodules.js index 9bdcbe95..46bb5b87 100644 --- a/modules/default/defaultmodules.js +++ b/modules/default/defaultmodules.js @@ -1,13 +1,10 @@ -/* Magic Mirror - * Default Modules List +/* Magic Mirror Default Modules List + * Modules listed below can be loaded without the 'default/' prefix. Omitting the default folder name. * * By Michael Teeuw https://michaelteeuw.nl * MIT Licensed. */ - -// Modules listed below can be loaded without the 'default/' prefix. Omitting the default folder name. - -var defaultModules = ["alert", "calendar", "clock", "compliments", "currentweather", "helloworld", "newsfeed", "weatherforecast", "updatenotification", "weather"]; +const defaultModules = ["alert", "calendar", "clock", "compliments", "currentweather", "helloworld", "newsfeed", "weatherforecast", "updatenotification", "weather"]; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {