diff --git a/src/browser/main.coffee b/src/browser/main.coffee index 669b65cc7..035b34db0 100644 --- a/src/browser/main.coffee +++ b/src/browser/main.coffee @@ -13,16 +13,6 @@ process.on 'uncaughtException', (error={}) -> nslog(error.message) if error.message? nslog(error.stack) if error.stack? -# Patch fs.statSyncNoException/fs.lstatSyncNoException to fail for non-strings -# https://github.com/atom/atom-shell/issues/843 -{lstatSyncNoException, statSyncNoException} = fs -fs.statSyncNoException = (pathToStat) -> - return false unless pathToStat and typeof pathToStat is 'string' - statSyncNoException(pathToStat) -fs.lstatSyncNoException = (pathToStat) -> - return false unless pathToStat and typeof pathToStat is 'string' - lstatSyncNoException(pathToStat) - start = -> if process.platform is 'win32' SquirrelUpdate = require './squirrel-update' diff --git a/static/index.js b/static/index.js index 728e47cd1..6220fae31 100644 --- a/static/index.js +++ b/static/index.js @@ -5,23 +5,6 @@ window.onload = function() { var fs = require('fs'); var path = require('path'); - // Patch fs.statSyncNoException/fs.lstatSyncNoException to fail for non-strings - // https://github.com/atom/atom-shell/issues/843 - var statSyncNoException = fs.statSyncNoException; - var lstatSyncNoException = fs.lstatSyncNoException; - fs.statSyncNoException = function(pathToStat) { - if (pathToStat && typeof pathToStat === 'string') - return statSyncNoException(pathToStat); - else - return false; - }; - fs.lstatSyncNoException = function(pathToStat) { - if (pathToStat && typeof pathToStat === 'string') - return lstatSyncNoException(pathToStat); - else - return false; - }; - // Skip "?loadSettings=". var rawLoadSettings = decodeURIComponent(location.search.substr(14)); var loadSettings;