FRE-709: Document duplicate recovery wake - FRE-635 already recovered via FRE-708
This commit is contained in:
26
node_modules/chromium/index.js
generated
vendored
Normal file
26
node_modules/chromium/index.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
const utils = require('./utils');
|
||||
|
||||
function getBinaryPath() {
|
||||
const path = utils.getOsChromiumBinPath();
|
||||
|
||||
if (fs.existsSync(path)) {
|
||||
return path;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
/*
|
||||
* The path property needs to use a getter because the binaries may not be present for any number of reasons.
|
||||
* Using a getter allows this property to update itself as needed and reflect the current state of the filesystem.
|
||||
*/
|
||||
get path() {
|
||||
return getBinaryPath();
|
||||
},
|
||||
install: require('./install')
|
||||
};
|
||||
Reference in New Issue
Block a user