mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Use es6 notation in defaults
This commit is contained in:
parent
7bc71029de
commit
3b4432cb00
@ -6,12 +6,12 @@
|
|||||||
* By Michael Teeuw https://michaelteeuw.nl
|
* By Michael Teeuw https://michaelteeuw.nl
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
*/
|
*/
|
||||||
var address = "localhost";
|
const address = "localhost";
|
||||||
var port = 8080;
|
let port = 8080;
|
||||||
if (typeof mmPort !== "undefined") {
|
if (typeof mmPort !== "undefined") {
|
||||||
port = mmPort;
|
port = mmPort;
|
||||||
}
|
}
|
||||||
var defaults = {
|
const defaults = {
|
||||||
address: address,
|
address: address,
|
||||||
port: port,
|
port: port,
|
||||||
basePath: "/",
|
basePath: "/",
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
/* Magic Mirror
|
/* Magic Mirror Default Modules List
|
||||||
* Default Modules List
|
* Modules listed below can be loaded without the 'default/' prefix. Omitting the default folder name.
|
||||||
*
|
*
|
||||||
* By Michael Teeuw https://michaelteeuw.nl
|
* By Michael Teeuw https://michaelteeuw.nl
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
*/
|
*/
|
||||||
|
const defaultModules = ["alert", "calendar", "clock", "compliments", "currentweather", "helloworld", "newsfeed", "weatherforecast", "updatenotification", "weather"];
|
||||||
// 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"];
|
|
||||||
|
|
||||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user