Fix i18n in tests

// FREEBIE
This commit is contained in:
lilia 2016-03-23 12:57:29 -07:00
parent 9f0bcf6ae7
commit c4fcbd8cbe

View file

@ -165,7 +165,9 @@
// Translate
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 || {};