From 947fc739eb54206ba83bf8c88d215f05a2174503 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Wed, 22 Nov 2017 16:04:30 -0500 Subject: [PATCH] remove extra translator require --- public/src/client/register.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/public/src/client/register.js b/public/src/client/register.js index 4289c75d10..fe738418fe 100644 --- a/public/src/client/register.js +++ b/public/src/client/register.js @@ -87,11 +87,9 @@ define('forum/register', ['translator', 'zxcvbn'], function (translator, zxcvbn) if (data.referrer) { window.location.href = data.referrer; } else if (data.message) { - require(['translator'], function (translator) { - translator.translate(data.message, function (msg) { - bootbox.alert(msg); - ajaxify.go('/'); - }); + translator.translate(data.message, function (msg) { + bootbox.alert(msg); + ajaxify.go('/'); }); } },