@deltares/fews-pi-requests
Version:
Library for making requests to the FEWS PI webservice
17 lines • 430 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.absoluteUrl = void 0;
function absoluteUrl(urlString) {
let url;
try {
url = new URL(urlString);
}
catch (error) {
if (error instanceof TypeError) {
url = new URL(urlString, document.baseURI);
}
}
return url;
}
exports.absoluteUrl = absoluteUrl;
//# sourceMappingURL=absoluteUrl.js.map