Skip to content

Commit

Permalink
Bugfix electron vm loading for android
Browse files Browse the repository at this point in the history
  • Loading branch information
avaer committed Jun 16, 2019
1 parent 87b9b36 commit 9470e8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/electron-vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const child_process = require('child_process');
const os = require('os');
const {TextEncoder} = require('util');

const electron = require('electron');
const bindings = require('./native-bindings');
const electron = !bindings.nativePlatform ? require('electron') : null;
const keycode = require('keycode');

const GlobalContext = require('./GlobalContext');
Expand Down Expand Up @@ -459,4 +460,4 @@ browser.postMessage({
console.log('exiting...');
cp.kill(9);
});
} */
} */

0 comments on commit 9470e8f

Please sign in to comment.