XMPP invitation landing page, without javascript
Fix client list getting injected twice
Alex Jordan 2017-01-16
parent ee66ab8 · commit 1c14861
-rw-r--r--scripts/main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/main.js b/scripts/main.js
index b0631e6..632925d 100644
--- a/scripts/main.js
+++ b/scripts/main.js
@@ -1,6 +1,8 @@
(function() {
'use strict';
+ var initialized = false;
+
// load i18n and perform translation
var i18n = new I18nText({path: 'lang'});
i18n.once(I18nText.EVT_LOCALE_CHANGE, function (data) {
@@ -81,6 +83,9 @@
}
function load_done() {
+ if (initialized) return;
+ initialized = true;
+
// functionality
load_clients();
rehash();