1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-02 08:30:14 +01:00

lint fixes

This commit is contained in:
Kyle Spearrin 2017-08-29 12:49:44 -04:00
parent a18e17749f
commit 8804cc5a96

View File

@ -9,7 +9,7 @@ function i18nService(utilsService) {
rawFile.open('GET', '../_locales/en/messages.json', false);
rawFile.onreadystatechange = function () {
if (rawFile.readyState === 4) {
if (rawFile.status === 200 || rawFile.status == 0) {
if (rawFile.status === 200 || rawFile.status === 0) {
var locales = JSON.parse(rawFile.responseText);
for (var property in locales) {
if (locales.hasOwnProperty(property)) {
@ -18,7 +18,7 @@ function i18nService(utilsService) {
}
}
}
}
};
rawFile.send(null);
return self.messages;