summaryrefslogtreecommitdiff
path: root/chat.js
diff options
context:
space:
mode:
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