Skip to content

Commit

Permalink
the new way to check for the filesystem = isNode variable, not fs
Browse files Browse the repository at this point in the history
  • Loading branch information
olgn committed Sep 6, 2018
1 parent fbc5ce7 commit 3fb60cc
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 3fb60cc

Please sign in to comment.