Skip to content

Commit 9b2dd5e

Browse files
committed
Merge pull request mathjax#157 from mathjax/patch-node4
Fix file check to work with node4.
2 parents 66e3d6c + 3f20e46 commit 9b2dd5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/patch/jsdom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
var fs = require('fs');
77

88
var PARSERS = 'jsdom/node_modules/cssstyle/lib/parsers.js'; // node 4 hierarchy
9-
try {fs.accessSync(PARSERS, fs.F_OK)} catch (e) {
9+
try {fs.accessSync('node_modules/'+PARSERS, fs.F_OK)} catch (e) {
1010
PARSERS = 'cssstyle/lib/parsers.js'; // node 5 heirarchy
1111
}
1212

0 commit comments

Comments
 (0)