From bfcaa51c464b4dfebe2bffe954d33e8ffd6c83ff Mon Sep 17 00:00:00 2001 From: Lplenka Date: Sat, 11 Mar 2017 01:55:48 +0530 Subject: [PATCH] :bug: :wrench: linting error fixed --- app/main/index.js | 4 ++-- app/main/windowmanager.js | 18 ++++++++---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/app/main/index.js b/app/main/index.js index 2f1a5bcf..eec9d07e 100644 --- a/app/main/index.js +++ b/app/main/index.js @@ -148,12 +148,12 @@ function createMainWindow() { allowDisplayingInsecureContent: true, nodeIntegration: false }, - show:false + show: false }); win.once('ready-to-show', () => { win.show(); - }) + }); win.loadURL(targetURL(), { userAgent: isUserAgent + ' ' + win.webContents.getUserAgent() diff --git a/app/main/windowmanager.js b/app/main/windowmanager.js index 478eb27a..64e89c90 100644 --- a/app/main/windowmanager.js +++ b/app/main/windowmanager.js @@ -34,22 +34,20 @@ function createdomainWindow() { return domainwin; } - // Call this window onClick addDomain in tray function addDomain() { domainWindow = createdomainWindow(); domainWindow.once('ready-to-show', () => { domainWindow.show(); }); - - - setTimeout(() => { - if (domainWindow!=null) {if (!domainWindow.isDestroyed()) domainWindow.destroy()} - }, 15000); - - + setTimeout(() => { + if (domainWindow !== null) { + if (!domainWindow.isDestroyed()) { + domainWindow.destroy(); + } + } + }, 15000); } - // About window function createAboutWindow() { const aboutwin = new electron.BrowserWindow({ @@ -81,7 +79,7 @@ function about() { aboutWindow = createAboutWindow(); aboutWindow.once('ready-to-show', () => { aboutWindow.show(); - }) + }); } exports = module.exports = {