File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ planned for 2025-04-01
38
38
- [ core] Fix wrong port in log message when starting server only (#3696 )
39
39
- [ calendar] NewYork event processed on system in Central timezone shows wrong time #3701
40
40
- [ weather/yr] The Yr weather provider is now able to recover from bad API resposes instead of freezing (#3296 )
41
+ - [ core] Add missing name and path to node_helper init function (#3708 )
41
42
42
43
## [ 2.30.0] - 2025-01-01
43
44
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ function App () {
210
210
Log . error ( `Error when loading ${ moduleName } :` , e . message ) ;
211
211
return ;
212
212
}
213
- let m = new Module ( ) ;
213
+ let m = new Module ( moduleName , path . resolve ( moduleFolder ) ) ;
214
214
215
215
if ( m . requiresVersion ) {
216
216
Log . log ( `Check MagicMirror² version for node helper '${ moduleName } ' - Minimum version: ${ m . requiresVersion } - Current version: ${ global . version } ` ) ;
@@ -222,8 +222,6 @@ function App () {
222
222
}
223
223
}
224
224
225
- m . setName ( moduleName ) ;
226
- m . setPath ( path . resolve ( moduleFolder ) ) ;
227
225
nodeHelpers . push ( m ) ;
228
226
229
227
m . loaded ( ) ;
Original file line number Diff line number Diff line change @@ -3,8 +3,11 @@ const Log = require("logger");
3
3
const Class = require ( "./class" ) ;
4
4
5
5
const NodeHelper = Class . extend ( {
6
- init ( ) {
7
- Log . log ( "Initializing new module helper ..." ) ;
6
+ init ( name , path ) {
7
+ this . setName ( name ) ;
8
+ this . setPath ( path ) ;
9
+
10
+ Log . log ( `Initializing new module helper: ${ this . name } ` ) ;
8
11
} ,
9
12
10
13
loaded ( ) {
You can’t perform that action at this time.
0 commit comments