summaryrefslogtreecommitdiff
path: root/chat.js
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-11 23:14:29 +0500
committerilotterytea <iltsu@alright.party>2025-12-11 23:14:29 +0500
commit5af7121ef495ce4d04b39da470331dd6421025d9 (patch)
tree70663989f25929cc0bde7923e42babdc7f50ea3e /chat.js
initial commit
Diffstat (limited to 'chat.js')
-rw-r--r--chat.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/chat.js b/chat.js
new file mode 100644
index 0000000..080fb4c
--- /dev/null
+++ b/chat.js
@@ -0,0 +1,5 @@
+function getChannelName() {
+ const path = window.location.pathname.split('/').filter(Boolean);
+ if (path.length == 1) return path[path.length - 1];
+ return null;
+} \ No newline at end of file