Skip to content

Commit

Permalink
Merge pull request #545 from olgn/files-refactor-merge-fix
Browse files Browse the repository at this point in the history
failing fs access in web validator
  • Loading branch information
nellh authored Sep 6, 2018
2 parents fbc5ce7 + 3fb60cc commit 5ff4fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/files/readFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const isNode = typeof window === 'undefined'
*/
function readFile(file) {
return new Promise((resolve, reject) => {
if (fs) {
if (isNode) {
testFile(file, function(issue) {
if (issue) {
process.nextTick(function() {
Expand Down

0 comments on commit 5ff4fbf

Please sign in to comment.