Remove url hashes

This commit is contained in:
Nils Maier 2019-08-27 04:49:16 +02:00
parent 07a3ec3a7b
commit 5b05d52886

View File

@ -28,7 +28,9 @@ return url;
}();
function makeURL(url: string) {
return new URL(url, baseURL);
const rv = new URL(url, baseURL);
rv.hash = "";
return rv;
}
function sanitize(str: string | null | undefined) {