Summary: This fixes headless not terminating due to the `package.json` not being readable. I instead write this to the `global` object in the same way that the version is set. Reviewed By: jknoxville Differential Revision: D14579316 fbshipit-source-id: 238afe912366c423552305e120088f4abac4c20b
31 lines
627 B
Plaintext
31 lines
627 B
Plaintext
{
|
|
remote: {
|
|
process: {
|
|
env: {},
|
|
},
|
|
getCurrentWindow: function() {
|
|
return {
|
|
isFocused: function() {return true;},
|
|
on: function() {return true;}
|
|
};
|
|
},
|
|
app: {
|
|
getVersion: function() {return global.__VERSION__ || '1';},
|
|
getName: function() {return '';},
|
|
getAppPath: function() {return process.cwd();}
|
|
},
|
|
shell: {
|
|
openExternal: function() {}
|
|
},
|
|
Menu: {
|
|
buildFromTemplate: function() {
|
|
return {items: []}
|
|
},
|
|
setApplicationMenu: function() {}
|
|
}
|
|
},
|
|
ipcRenderer: {
|
|
on: function() {return true;}
|
|
},
|
|
}
|