Skip to content

Commit

Permalink
* xover.Source.fetch - type check added
Browse files Browse the repository at this point in the history
  • Loading branch information
uriel-online committed Dec 3, 2023
1 parent 2700051 commit 8ee9526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2342,10 +2342,10 @@ xover.Source = function (tag) {
let source = sources.shift();
if (!source) continue;
let parameters = {}.constructor === definition.constructor && definition[source] || args;
source = ('${') !== -1 ? eval("`" + source + "`") : source;
source = typeof (source) == 'string' && source.indexOf('${') !== -1 ? eval("`" + source + "`") : source;
//parameters = parameters.concat(args);

if (source.replace(/^server:/, '') in xover.server || existsFunction(source)) {
if (typeof (source) == 'string' && source.replace(/^server:/, '') in xover.server || existsFunction(source)) {
if (parameters.constructor === {}.constructor) {
parameters = Object.entries(parameters) || parameters
}
Expand Down

0 comments on commit 8ee9526

Please sign in to comment.