Skip to content

Commit

Permalink
Change let to const and resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Knowles committed Oct 4, 2020
1 parent 4c70316 commit 00695d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/main-window.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function createWindow()

mainWindow.on('minimize', (event) =>
{
let savedPreferences = getUserPreferences();
const savedPreferences = getUserPreferences();
if (savedPreferences['minimize-to-tray'])
{
event.preventDefault();
Expand All @@ -119,7 +119,7 @@ function createWindow()
// Emitted when the window is closed.
mainWindow.on('close', (event) =>
{
let savedPreferences = getUserPreferences();
const savedPreferences = getUserPreferences();
if (!app.isQuitting && savedPreferences['close-to-tray'])
{
event.preventDefault();
Expand Down

0 comments on commit 00695d0

Please sign in to comment.