Skip to content

Commit

Permalink
Using function name directly in click handler
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoarthur0 committed Jan 13, 2024
1 parent e01cc5f commit 00e4f1c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,7 @@ function renderPreferencesWindow()
}
});

$('#reset-button').on('click', function()
{
resetPreferences();
});
$('#reset-button').on('click', resetPreferences);

const prefillBreak = $('#enable-prefill-break-time');
const breakInterval = $('#break-time-interval');
Expand Down

0 comments on commit 00e4f1c

Please sign in to comment.