Add initial Android app support
This commit is contained in:
parent
0024d6692b
commit
9f7dee08a8
11 changed files with 306 additions and 30 deletions
|
@ -4,6 +4,9 @@ const pty = require("node-pty");
|
|||
|
||||
var mainWindow, terminalWindow, ptyProcess
|
||||
|
||||
app.commandLine.appendSwitch('enable-transparent-visuals');
|
||||
app.disableHardwareAcceleration();
|
||||
|
||||
function createWindow() {
|
||||
mainWindow = new BrowserWindow({
|
||||
minWidth: 1000,
|
||||
|
@ -138,7 +141,9 @@ function loadTerminalWindow(title, cmd) {
|
|||
app.whenReady().then(() => {
|
||||
app.allowRendererProcessReuse = false
|
||||
|
||||
createWindow()
|
||||
setTimeout(() => {
|
||||
createWindow();
|
||||
}, 1000);
|
||||
createTerminalWindow()
|
||||
|
||||
ipcMain.on('create-term', (event, data) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue