Skip to content

Commit 5ff4fbf

Browse files
authored
Merge pull request #545 from olgn/files-refactor-merge-fix
failing fs access in web validator
2 parents fbc5ce7 + 3fb60cc commit 5ff4fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/files/readFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const isNode = typeof window === 'undefined'
1616
*/
1717
function readFile(file) {
1818
return new Promise((resolve, reject) => {
19-
if (fs) {
19+
if (isNode) {
2020
testFile(file, function(issue) {
2121
if (issue) {
2222
process.nextTick(function() {

0 commit comments

Comments
 (0)