Skip to content

Commit 1462531

Browse files
author
Avaer Kazmer
authored
Merge pull request #1216 from exokitxr/electron-android
[Quest] Bugfix electron vm loading
2 parents 87b9b36 + 9470e8f commit 1462531

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/electron-vm.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const child_process = require('child_process');
66
const os = require('os');
77
const {TextEncoder} = require('util');
88

9-
const electron = require('electron');
9+
const bindings = require('./native-bindings');
10+
const electron = !bindings.nativePlatform ? require('electron') : null;
1011
const keycode = require('keycode');
1112

1213
const GlobalContext = require('./GlobalContext');
@@ -459,4 +460,4 @@ browser.postMessage({
459460
console.log('exiting...');
460461
cp.kill(9);
461462
});
462-
} */
463+
} */

0 commit comments

Comments
 (0)