diff options
| author | Alex Jordan <alex@strugee.net> | 2017-01-16 14:24:02 -0500 |
|---|---|---|
| committer | Alex Jordan <alex@strugee.net> | 2017-01-16 14:24:02 -0500 |
| commit | 1c14861891a24afb412aac1e3d1c8ed684f7a384 (patch) | |
| tree | 82f317960c1cdf54c64da19fc00dc3a3c0a2c711 /scripts/main.js | |
| parent | ee66ab89149f8c389db1e5b55bf4f35a5a56c668 (diff) | |
| download | php-xmpp-invitation-1c14861891a24afb412aac1e3d1c8ed684f7a384.tar.gz | |
Fix client list getting injected twice
Diffstat (limited to 'scripts/main.js')
| -rw-r--r-- | scripts/main.js | 5 |
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(); |
