|
|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import path = require('path');
|
|
|
|
|
import url = require("url");
|
|
|
|
|
import url = require('url');
|
|
|
|
|
import port = require('./port');
|
|
|
|
|
import optionService = require('./options');
|
|
|
|
|
import env = require('./env');
|
|
|
|
|
@ -7,7 +7,7 @@ import log = require('./log');
|
|
|
|
|
import sqlInit = require('./sql_init');
|
|
|
|
|
import cls = require('./cls');
|
|
|
|
|
import keyboardActionsService = require('./keyboard_actions');
|
|
|
|
|
import remoteMain = require("@electron/remote/main")
|
|
|
|
|
import remoteMain = require('@electron/remote/main')
|
|
|
|
|
import { App, BrowserWindow, WebContents, ipcMain } from 'electron';
|
|
|
|
|
|
|
|
|
|
// Prevent the window being garbage collected
|
|
|
|
|
@ -100,7 +100,7 @@ function configureWebContents(webContents: WebContents, spellcheckEnabled: boole
|
|
|
|
|
remoteMain.enable(webContents);
|
|
|
|
|
|
|
|
|
|
mainWindow.webContents.setWindowOpenHandler((details) => {
|
|
|
|
|
require("electron").shell.openExternal(details.url);
|
|
|
|
|
require('electron').shell.openExternal(details.url);
|
|
|
|
|
return { action: 'deny' }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|