Minor code Cleanup

This commit is contained in:
Manoj Vivek 2023-04-27 07:47:47 +05:30
parent 3205020c0d
commit ad63b4f391
2 changed files with 2 additions and 3 deletions

View file

@ -9,11 +9,11 @@
* `./src/main.js` using webpack. This gives us some performance wins.
*/
import path from 'path';
import { app, BrowserWindow, shell, ipcMain, screen } from 'electron';
import { app, BrowserWindow, shell, screen } from 'electron';
import { autoUpdater } from 'electron-updater';
import log from 'electron-log';
import cli from './cli';
import { IPC_MAIN_CHANNELS, PROTOCOL } from '../common/constants';
import { PROTOCOL } from '../common/constants';
import MenuBuilder from './menu';
import { isValidCliArgURL, resolveHtmlPath } from './util';
import { BROWSER_SYNC_HOST, initInstance } from './browser-sync';

View file

@ -3,7 +3,6 @@ import { IPC_MAIN_CHANNELS } from '../../common/constants';
// eslint-disable-next-line import/prefer-default-export
export const openUrl = (url: string, mainWindow: BrowserWindow | null) => {
console.log('open-url', url);
mainWindow?.webContents.send(IPC_MAIN_CHANNELS.OPEN_URL, {
url,
});