summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/play.js b/play.js
index b2ed9e2..0c3cb28 100644
--- a/play.js
+++ b/play.js
@@ -275,6 +275,13 @@ function on_init() {
return
on_init_once = true
+ let favicon = document.querySelector('link[rel="icon"]')
+ switch (params.role) {
+ case "Anarchist": favicon.href = "images/tokens150/player_anarchist.png"; break
+ case "Communist": favicon.href = "images/tokens150/player_communist.png"; break
+ case "Moderate": favicon.href = "images/tokens150/player_moderate.png"; break
+ }
+
ui.roles_list = document.getElementById("roles"),
ui.roles = [
document.getElementById("role_Anarchist"),