about summary refs log tree commit diff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.html b/index.html
index f8b9baf..7b10278 100644
--- a/index.html
+++ b/index.html
@@ -47,6 +47,13 @@ function load_hash() {
   key_prefix = "chat.";
   var jid = window.location.search || window.location.hash;
   jid = decodeURIComponent(jid.substring(jid.indexOf('#') + 1, jid.length));
+  try {
+    base_decoded = window.atob(jid);
+    if (base_decoded.search('@') >= 0)
+      jid = base_decoded;
+  } catch (err) {
+    // ignore error, JID wasn't base64 encoded
+  }
   if (jid.search("\\?join") >= 0) {
     muc = true;
     key_prefix = "muc.";