changeset 14:962f64b156dd

Stop hardcoding XEP-0156 file to the current domain.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 22 Dec 2018 18:10:58 +0100
parents 8724e28ccbd7
children 3eed9fe0bd7c
files client.js
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client.js
+++ b/client.js
@@ -43,8 +43,7 @@ document.addEventListener('DOMContentLoa
     {
         return new Promise((resolve, reject) => {
             const [nodepart, domainpart] = jid.split('@', 2);
-            //const url = 'https://' + domainpart + '/.well-known/host-meta';
-            const url = '/.well-known/host-meta';
+            const url = 'https://' + domainpart + '/.well-known/host-meta';
             const xhr = new XMLHttpRequest();
             xhr.onload = function (evt) {
                 const xml = evt.target.responseXML;