Merge branch 'master' into joebordes/i18n_001

This commit is contained in:
Nick O'Leary
2024-02-05 16:47:55 +00:00
committed by GitHub
12 changed files with 13 additions and 89 deletions

View File

@@ -315,7 +315,7 @@ module.exports = function(RED) {
var spec = module.module;
if (spec && (spec !== "")) {
moduleLoadPromises.push(RED.import(module.module).then(lib => {
sandbox[vname] = lib.default;
sandbox[vname] = lib.default || lib;
}).catch(err => {
node.error(RED._("function.error.moduleLoadError",{module:module.spec, error:err.toString()}))
throw err;