From c9e60dc19bac7ef8edd5d935990aabcd06b4e5ff Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 4 Jan 2018 11:13:40 +0300 Subject: [PATCH] t() is not defined in content scripts --- content/install-hook-usercss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/install-hook-usercss.js b/content/install-hook-usercss.js index 5edd0153..e4dcf16f 100644 --- a/content/install-hook-usercss.js +++ b/content/install-hook-usercss.js @@ -46,7 +46,7 @@ function createSourceLoader() { } }) .catch(error => { - console.log(t('liveReloadError', error)); + console.log(chrome.i18n.getMessage('liveReloadError', error)); }) .then(() => { timer = setTimeout(check, DELAY);