Skip to content

Commit

Permalink
Trim token
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Feb 10, 2019
1 parent a4315c1 commit c7076ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion options/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ document.querySelector('form')
.addEventListener('submit', (e) => {
e.preventDefault();

let token = e.target['access_token'].value.trim();

browser.storage.local.set({
accessToken: e.target['access_token'].value,
accessToken: token,
showNotifications: e.target['show_notifications'].checked,
showNotificationsDecreased: e.target['show_notifications_decreased'].checked
});

e.target['access_token'].value = token;
});

0 comments on commit c7076ca

Please sign in to comment.