From 1c14861891a24afb412aac1e3d1c8ed684f7a384 Mon Sep 17 00:00:00 2001 From: Alex Jordan Date: Mon, 16 Jan 2017 14:24:02 -0500 Subject: Fix client list getting injected twice --- scripts/main.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') 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(); -- cgit 1.4.1