diff --git a/examples/hips/gaia/properties.txt b/examples/hips/gaia/properties similarity index 100% rename from examples/hips/gaia/properties.txt rename to examples/hips/gaia/properties diff --git a/src/js/HiPSProperties.js b/src/js/HiPSProperties.js index b6022a290..46f124a68 100644 --- a/src/js/HiPSProperties.js +++ b/src/js/HiPSProperties.js @@ -70,7 +70,6 @@ HiPSProperties.fetchFromID = async function(ID) { } HiPSProperties.fetchFromUrl = async function(urlOrId) { - let addTextExt = false; try { urlOrId = new URL(urlOrId); } catch (e) { @@ -80,7 +79,7 @@ HiPSProperties.fetchFromUrl = async function(urlOrId) { urlOrId = new URL(urlOrId); - addTextExt = true; + } catch(e) { throw e; } @@ -96,10 +95,7 @@ HiPSProperties.fetchFromUrl = async function(urlOrId) { url = url.substr(0, url.length - 1); } url = url + '/properties'; - - if (addTextExt) { - url = url + '.txt'; - } + console.log("rrr", url) // make URL absolute url = Utils.getAbsoluteURL(url);