From c4fcbd8cbeb97af731c9451cf239aacbc473e1af Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 23 Mar 2016 12:57:29 -0700 Subject: [PATCH] Fix i18n in tests // FREEBIE --- js/chromium.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/chromium.js b/js/chromium.js index 369a059e..a2e08077 100644 --- a/js/chromium.js +++ b/js/chromium.js @@ -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 || {};