summaryrefslogtreecommitdiffhomepage
path: root/gui/src/shared
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-03-12 15:37:35 +0100
committerAndrej Mihajlov <and@mullvad.net>2019-03-13 11:24:55 +0100
commitb37bf6b48580eb6fd6fb1c2674168c6b34c457ef (patch)
tree018354ae8d6c3ce51bb08901463be6a78ce90839 /gui/src/shared
parent957f44d808be661994d5a8db93945948102d5f8c (diff)
downloadmullvadvpn-b37bf6b48580eb6fd6fb1c2674168c6b34c457ef.tar.xz
mullvadvpn-b37bf6b48580eb6fd6fb1c2674168c6b34c457ef.zip
Remove explicit type on Gettext event handler
Diffstat (limited to 'gui/src/shared')
-rw-r--r--gui/src/shared/gettext.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/src/shared/gettext.ts b/gui/src/shared/gettext.ts
index a1e2a3cb0f..b466a44134 100644
--- a/gui/src/shared/gettext.ts
+++ b/gui/src/shared/gettext.ts
@@ -12,7 +12,7 @@ const LOCALES_DIR = path.resolve(__dirname, '../../locales');
// the errors are handled separately in the "error" handler below
const catalogue = new Gettext({ debug: false });
catalogue.setTextDomain('messages');
-catalogue.on('error', (error: string) => {
+catalogue.on('error', (error) => {
// Filter out the "no translation was found" errors for the source language
if (SELECTED_LANGUAGE === SOURCE_LANGUAGE && error.indexOf('No translation was found') !== -1) {
return;