# HG changeset patch # User Emmanuel Gil Peyrot # Date 1545498658 -3600 # Node ID 962f64b156dd6b0e0f51dc1cf560e697e6a29b5e # Parent 8724e28ccbd797b4bed3e9a92b323be25de40708 Stop hardcoding XEP-0156 file to the current domain. diff --git a/client.js b/client.js --- 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;