fix(core): update

This commit is contained in:
2023-11-09 16:37:52 +01:00
parent b303799b8d
commit f3cc468eda
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ export class Smartenv {
}
}
public async getSafeNodeModule<T = any>(moduleNameArg: string, runAfterFunc: (moduleArg: T) => Promise<any>): Promise<T> {
public async getSafeNodeModule<T = any>(moduleNameArg: string, runAfterFunc?: (moduleArg: T) => Promise<any>): Promise<T> {
if (!this.isNode) {
console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`);
return;