Fix i18n in tests
// FREEBIE
This commit is contained in:
parent
9f0bcf6ae7
commit
c4fcbd8cbe
1 changed files with 3 additions and 1 deletions
|
@ -165,7 +165,9 @@
|
||||||
|
|
||||||
// Translate
|
// Translate
|
||||||
window.i18n = function(message, substitutions) {
|
window.i18n = function(message, substitutions) {
|
||||||
return chrome.i18n.getMessage(message, substitutions);
|
if (window.chrome && chrome.i18n) {
|
||||||
|
return chrome.i18n.getMessage(message, substitutions);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
window.textsecure = window.textsecure || {};
|
window.textsecure = window.textsecure || {};
|
||||||
|
|
Loading…
Reference in a new issue