diff --git a/src/browser/atom-protocol-handler.coffee b/src/browser/atom-protocol-handler.coffee index 24fafd647..51806379b 100644 --- a/src/browser/atom-protocol-handler.coffee +++ b/src/browser/atom-protocol-handler.coffee @@ -1,5 +1,5 @@ app = require 'app' -fs = require 'fs' +fs = require 'fs-plus' path = require 'path' protocol = require 'protocol' @@ -24,5 +24,5 @@ class AtomProtocolHandler relativePath = path.normalize(request.url.substr(7)) for loadPath in @loadPaths filePath = path.join(loadPath, relativePath) - break if fs.statSyncNoException(filePath)? + break if fs.isFileSync(filePath) return new protocol.RequestFileJob(filePath)