Skip to content

Commit

Permalink
Merge pull request #55 from busykai/master
Browse files Browse the repository at this point in the history
Support text in node-webkit.
  • Loading branch information
jrburke committed Jul 22, 2013
2 parents 9ce2700 + 5cebb81 commit e7ab4ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion text.js
Expand Up @@ -237,7 +237,8 @@ define(['module'], function (module) {
if (masterConfig.env === 'node' || (!masterConfig.env && if (masterConfig.env === 'node' || (!masterConfig.env &&
typeof process !== "undefined" && typeof process !== "undefined" &&
process.versions && process.versions &&
!!process.versions.node)) { !!process.versions.node &&
!process.versions['node-webkit'])) {
//Using special require.nodeRequire, something added by r.js. //Using special require.nodeRequire, something added by r.js.
fs = require.nodeRequire('fs'); fs = require.nodeRequire('fs');


Expand Down

0 comments on commit e7ab4ca

Please sign in to comment.