Skip to content

Commit

Permalink
refactor: improve file loading logic in owrap.oJob.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar committed May 30, 2024
1 parent 3954726 commit 8469ef2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/owrap.oJob.js
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,8 @@ OpenWrap.oJob.prototype.__loadFile = function(aFile, removeTodos, isInclude) {
}
} else if (aFile.match(/^https?:\/\//)) {
res = this.__merge(_load(fnDown), res);
} else {
res = this.__merge(_load(f => io.readFile(f)), res)
}

}
Expand Down

0 comments on commit 8469ef2

Please sign in to comment.