fix text plugin
This commit is contained in:
parent
56c77291f7
commit
4666af6288
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ define(function (require, exports, module) {
|
|||
exports.load = function (name, req, onLoad, config) {
|
||||
//Using special require.nodeRequire, something added by r.js.
|
||||
if (globalRequire && globalRequire.nodeRequire)
|
||||
onLoad(fs.readFileSync(req.toUrl(name), 'utf8'));
|
||||
onLoad(globalRequire.nodeRequire('fs').readFileSync(req.toUrl(name), 'utf8'));
|
||||
else
|
||||
require("ace/lib/net").get(req.toUrl(name), onLoad);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue