Updates from Wed 6 May

This commit is contained in:
Alex Kotliarskyi 2015-05-06 16:08:10 -07:00
commit b2bfef2d9e
2 changed files with 16 additions and 1 deletions

View File

@ -10,7 +10,7 @@
on run argv
set theURL to item 1 of argv
tell application "Google Chrome"
tell application "Chrome"
activate
if (count every window) = 0 then

View File

@ -8,6 +8,8 @@
*/
'use strict';
useGracefulFs();
var Activity = require('./src/Activity');
var Server = require('./src/Server');
@ -45,3 +47,16 @@ exports.getDependencies = function(options, main) {
return r.dependencies;
});
};
function useGracefulFs() {
var fs = require('fs');
var gracefulFs = require('graceful-fs');
// A bit sneaky but it's not straightforward to update all the
// modules we depend on.
Object.keys(fs).forEach(function(method) {
if (typeof fs[method] === 'function' && gracefulFs[method]) {
fs[method] = gracefulFs[method];
}
});
}