Summary: The electron stub is used by the headless version of Flipper. For that reason, the version number was always `1`. The headless version has a the actual version written to a global variable. So let's use it here. Reviewed By: passy Differential Revision: D14149692 fbshipit-source-id: c4781987fd3201e67897eaf31627b0bb2970ffcb
30 lines
573 B
Plaintext
30 lines
573 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 '';}
|
|
},
|
|
shell: {
|
|
openExternal: function() {}
|
|
},
|
|
Menu: {
|
|
buildFromTemplate: function() {
|
|
return {items: []}
|
|
},
|
|
setApplicationMenu: function() {}
|
|
}
|
|
},
|
|
ipcRenderer: {
|
|
on: function() {return true;}
|
|
},
|
|
}
|