Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Dec 19, 2022
1 parent 6d8e031 commit 751edc1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion i18nextHttpBackend.js
Expand Up @@ -163,7 +163,7 @@ var Backend = function () {
dataArray.push(data);
resArray.push(res);
if (finished === languages.length) {
if (callback) callback(dataArray, resArray);
if (typeof callback === 'function') callback(dataArray, resArray);
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion i18nextHttpBackend.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -108,7 +108,7 @@ class Backend {
dataArray.push(data)
resArray.push(res)
if (finished === languages.length) {
if (callback) callback(dataArray, resArray)
if (typeof callback === 'function') callback(dataArray, resArray)
}
})
})
Expand Down

0 comments on commit 751edc1

Please sign in to comment.