Skip to content

Commit

Permalink
revert seeking properties with a txt extension
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatthieu3 committed Sep 26, 2023
1 parent c42ac03 commit dcafbd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
File renamed without changes.
8 changes: 2 additions & 6 deletions src/js/HiPSProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ HiPSProperties.fetchFromID = async function(ID) {
}

HiPSProperties.fetchFromUrl = async function(urlOrId) {
let addTextExt = false;
try {
urlOrId = new URL(urlOrId);
} catch (e) {
Expand All @@ -80,7 +79,7 @@ HiPSProperties.fetchFromUrl = async function(urlOrId) {

urlOrId = new URL(urlOrId);

addTextExt = true;

} catch(e) {
throw e;
}
Expand All @@ -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);
Expand Down

0 comments on commit dcafbd7

Please sign in to comment.