From a72bccadf94d03c5b215dc0142f9831277893ba3 Mon Sep 17 00:00:00 2001 From: akashnimare Date: Mon, 12 Sep 2016 06:49:49 +0530 Subject: [PATCH] linting errors --- app/main/index.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/app/main/index.js b/app/main/index.js index b7e128b6..58d91a01 100644 --- a/app/main/index.js +++ b/app/main/index.js @@ -197,23 +197,11 @@ app.on('ready', () => { } }); - // electronLocalshortcut.register(mainWindow, 'CommandOrControl+=', () => { - // page.send('zoomIn'); - // }); - - // electronLocalshortcut.register(mainWindow, 'CommandOrControl+-', () => { - // page.send('zoomOut'); - // }); - - // electronLocalshortcut.register(mainWindow, 'CommandOrControl+0', () => { - // page.send('zoomActualSize'); - // }); - page.on('dom-ready', () => { page.insertCSS(fs.readFileSync(path.join(__dirname, 'preload.css'), 'utf8')); mainWindow.show(); }); - + page.on('new-window', (event, url) => { if (linkIsInternal(checkWindowURL(), url) && url.match(skipImages) === null) { event.preventDefault();