From 39c85ca3f7eb05d793c580c7b9f000473ad2d460 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 31 Jan 2017 12:01:33 +0100 Subject: [PATCH] Fix race condition causing missing translations in homepage --- www/common/cryptpad-common.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index b79aef7ea..cd600f5dd 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1231,7 +1231,9 @@ define([ store = Store; }); - Messages._applyTranslation(); + $(function () { + Messages._applyTranslation(); + }); Alertify._$$alertify.delay = AppConfig.notificationTimeout || 5000;