1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 11:13:46 +00:00

formatting

This commit is contained in:
Kyle Spearrin
2016-09-22 13:15:42 -04:00
parent a57897b0c7
commit f28b690a2a
15 changed files with 57 additions and 45 deletions

View File

@@ -103,7 +103,7 @@ function initAutofill() {
fillScript.autosubmit = { focusOpid: password.opid };
}
}
else if (passwordFields.length == 1) {
else if (passwordFields.length === 1) {
// The page does not have any forms with password fields. Use the one password field on the page and the
// input field just before it as the username.

View File

@@ -99,6 +99,8 @@ function initTokenService() {
throw 'Illegal base64url string!';
}
}
return window.decodeURIComponent(escape(window.atob(output))); //polyfill https://github.com/davidchambers/Base64.js
//polyfill https://github.com/davidchambers/Base64.js
return window.decodeURIComponent(escape(window.atob(output)));
};
};