mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-07-30 23:48:54 +00:00
fix: whitespace
This commit is contained in:
@@ -189,7 +189,7 @@ Widget.prototype.getVariableInfo = function(name,options) {
|
||||
}
|
||||
return {
|
||||
text: text,
|
||||
resultList: text === undefined ? text: [text]
|
||||
resultList: text === undefined ? text : [text]
|
||||
};
|
||||
};
|
||||
|
||||
@@ -338,7 +338,7 @@ Widget.prototype.makeFakeWidgetWithVariables = function(vars = {}) {
|
||||
const value = vars[name];
|
||||
return Array.isArray(value)
|
||||
? { text: value[0], resultList: value }
|
||||
: { text: value, resultList: value === undefined ? value :[value] };
|
||||
: { text: value, resultList: value === undefined ? value : [value] };
|
||||
}
|
||||
opts = opts || {};
|
||||
opts.variables = Object.assign({}, vars, opts.variables || {});
|
||||
|
||||
Reference in New Issue
Block a user