diff options
Diffstat (limited to 'chat.js')
| -rw-r--r-- | chat.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
