From 71dfb32ec2abde8050c535302f744acf41e21061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 20 Dec 2017 22:05:09 -0500 Subject: [PATCH] remove timeago loading --- lib/persona.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/persona.js b/lib/persona.js index d227c41..1f3ff90 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -198,8 +198,7 @@ $(document).ready(function() { }); function loadNotifications() { - const lang = utils.userLangToTimeagoCode(config.userLang); - require(['notifications', 'assets/vendor/jquery/timeago/locales/jquery.timeago.' + lang + '.js'], function(notifications) { + require(['notifications'], function(notifications) { notifications.loadNotifications($('#menu [data-section="notifications"] ul')); }); }