mirror of https://github.com/status-im/metro.git
Updates from Wed 6 May
This commit is contained in:
commit
b2bfef2d9e
|
@ -10,7 +10,7 @@
|
||||||
on run argv
|
on run argv
|
||||||
set theURL to item 1 of argv
|
set theURL to item 1 of argv
|
||||||
|
|
||||||
tell application "Google Chrome"
|
tell application "Chrome"
|
||||||
activate
|
activate
|
||||||
|
|
||||||
if (count every window) = 0 then
|
if (count every window) = 0 then
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
useGracefulFs();
|
||||||
|
|
||||||
var Activity = require('./src/Activity');
|
var Activity = require('./src/Activity');
|
||||||
var Server = require('./src/Server');
|
var Server = require('./src/Server');
|
||||||
|
|
||||||
|
@ -45,3 +47,16 @@ exports.getDependencies = function(options, main) {
|
||||||
return r.dependencies;
|
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];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue