mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-06-11 11:04:08 +00:00
Ensure JS macros return text
This commit is contained in:
parent
26e50b81e5
commit
9a067b8dac
@ -171,7 +171,7 @@ Widget.prototype.evaluateMacroModule = function(name,actualParams,defaultValue)
|
|||||||
else for(var i=0; i<actualParams.length; ++i) {
|
else for(var i=0; i<actualParams.length; ++i) {
|
||||||
args.push(actualParams[i].value);
|
args.push(actualParams[i].value);
|
||||||
}
|
}
|
||||||
return macro.run.apply(this,args);
|
return macro.run.apply(this,args).toString();
|
||||||
} else {
|
} else {
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user