summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/play.js b/play.js
index 1e6aaeb..7a539a3 100644
--- a/play.js
+++ b/play.js
@@ -1063,7 +1063,13 @@ function make_card_class_name(c) {
return "card card_" + c + " u" + data.card_unshaded_lines[c] + " s" + data.card_shaded_lines[c]
}
+let once = true
function on_update() {
+ if (once) {
+ init_ui()
+ once = false
+ }
+
switch (player) {
case "Government": ui.favicon.href = "images/icon_govt.png"; break
case "AUC": ui.favicon.href = "images/icon_auc.png"; break
@@ -1516,5 +1522,4 @@ function map_get(map, key, missing) {
return missing
}
-init_ui()
scroll_with_middle_mouse("main")