Fixed launcher to have ready method

This commit is contained in:
Alex Shpak 2017-02-05 15:19:45 +01:00
parent db701754b0
commit cba2fddfa6
2 changed files with 14 additions and 0 deletions

View File

@ -11,6 +11,9 @@ const Launcher = {
version: window.process.versions.electron,
autoTypeSupported: true,
req: window.require,
ready: function(callback) {
callback();
},
platform: function() {
return process.platform;
},

View File

@ -0,0 +1,11 @@
'use strict';
let Launcher;
if (window.process && window.process.versions && window.process.versions.electron) {
Launcher = require('./launcher-electron');
} else if (window.cordova) {
// Launcher = require('./launcher-android');
}
module.exports = Launcher;