aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/muteListClick.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/dom/muteListClick.ts')
-rw-r--r--webAO/dom/muteListClick.ts20
1 files changed, 0 insertions, 20 deletions
diff --git a/webAO/dom/muteListClick.ts b/webAO/dom/muteListClick.ts
deleted file mode 100644
index 6ae3eea..0000000
--- a/webAO/dom/muteListClick.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { client } from "../client";
-/**
- * Triggered when a character in the mute list is clicked
- * @param {MouseEvent} event
- */
-export function mutelist_click(_event: Event) {
- const mutelist = <HTMLSelectElement>document.getElementById("mute_select");
- const selected_character = mutelist.options[mutelist.selectedIndex];
-
- if (client.chars[selected_character.value].muted === false) {
- client.chars[selected_character.value].muted = true;
- selected_character.text = `${client.chars[selected_character.value].name
- } (muted)`;
- console.info(`muted ${client.chars[selected_character.value].name}`);
- } else {
- client.chars[selected_character.value].muted = false;
- selected_character.text = client.chars[selected_character.value].name;
- }
-}
-window.mutelist_click = mutelist_click; \ No newline at end of file