From cbf32f12c8c9db412d26d921e3d6deaf4ec0a048 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sat, 7 Mar 2020 16:28:35 +0100 Subject: [PATCH] remove unused imports --- src/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index b5ccb04..8e8e1c2 100755 --- a/src/main.js +++ b/src/main.js @@ -6,7 +6,6 @@ const { nativeImage, nativeTheme, Notification, - electron } = require('electron') const settings = require('electron-settings') const path = require('path') @@ -61,7 +60,7 @@ const createTray = () => { tray.on('click', toggleWindow) } -nativeTheme.on('updated', function() { +nativeTheme.on('updated', function () { tray.destroy() createTray() window.reload() @@ -151,7 +150,7 @@ function sendMax() { let level = '--'; setInterval(() => { - exec('pmset -g batt | egrep "([0-9]+\%)" -o', function(err, stdout, stderr) { + exec('pmset -g batt | egrep "([0-9]+\%)" -o', function (err, stdout, stderr) { if (err) { console.log(error.stack) console.log('Error code: ' + error.code)