Skip to content

Commit c44516e

Browse files
committed
Build
1 parent 83aa1fb commit c44516e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

dist/angular-gettext.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ angular.module('gettext').factory('gettextCatalog', ["gettextPlurals", "$http",
121121
url: url,
122122
cache: catalog.cache
123123
}).success(function (data) {
124-
for (var lang in data) {
125-
catalog.setStrings(lang, data[lang]);
124+
if (typeof data === 'object') {
125+
for (var lang in data) {
126+
catalog.setStrings(lang, data[lang]);
127+
}
126128
}
127129
});
128130
}

dist/angular-gettext.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)