about summary refs log tree commit diff
path: root/scripts/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/main.js')
-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();