mirror of https://github.com/keeweb/keeweb.git
Fixed launcher to have ready method
This commit is contained in:
parent
db701754b0
commit
cba2fddfa6
|
@ -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;
|
||||
},
|
||||
|
|
|
@ -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;
|
Loading…
Reference in New Issue