mirror of
https://github.com/cupcakearmy/volta.git
synced 2025-09-09 20:20:44 +00:00
remove unused imports
This commit is contained in:
@@ -6,7 +6,6 @@ const {
|
|||||||
nativeImage,
|
nativeImage,
|
||||||
nativeTheme,
|
nativeTheme,
|
||||||
Notification,
|
Notification,
|
||||||
electron
|
|
||||||
} = require('electron')
|
} = require('electron')
|
||||||
const settings = require('electron-settings')
|
const settings = require('electron-settings')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
@@ -61,7 +60,7 @@ const createTray = () => {
|
|||||||
tray.on('click', toggleWindow)
|
tray.on('click', toggleWindow)
|
||||||
}
|
}
|
||||||
|
|
||||||
nativeTheme.on('updated', function() {
|
nativeTheme.on('updated', function () {
|
||||||
tray.destroy()
|
tray.destroy()
|
||||||
createTray()
|
createTray()
|
||||||
window.reload()
|
window.reload()
|
||||||
@@ -151,7 +150,7 @@ function sendMax() {
|
|||||||
|
|
||||||
let level = '--';
|
let level = '--';
|
||||||
setInterval(() => {
|
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) {
|
if (err) {
|
||||||
console.log(error.stack)
|
console.log(error.stack)
|
||||||
console.log('Error code: ' + error.code)
|
console.log('Error code: ' + error.code)
|
||||||
|
Reference in New Issue
Block a user