Skip to content

Commit

Permalink
Support persisting keepMeSignedIn toggled with keyboard (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
pols12 authored and sindresorhus committed Jan 30, 2019
1 parent 83229d4 commit 64778d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ window.addEventListener('load', () => {
if (location.pathname.startsWith('/login')) {
const keepMeSignedInCheckbox = document.querySelector('#u_0_0');
keepMeSignedInCheckbox.checked = config.get('keepMeSignedIn');
keepMeSignedInCheckbox.addEventListener('click', () => {
keepMeSignedInCheckbox.addEventListener('change', () => {
config.set('keepMeSignedIn', !config.get('keepMeSignedIn'));
});
}
Expand Down

0 comments on commit 64778d4

Please sign in to comment.