change the pseudo-property on URL to a two-stage process

This commit is contained in:
Erik Krogh Kristensen
2020-02-05 10:27:03 +01:00
parent e525cf0959
commit 76aca02752
3 changed files with 23 additions and 7 deletions

View File

@@ -335,4 +335,8 @@ function URLPseudoProperties() {
let params = getTaintedUrl().searchParams;
$('name').html(params.get('name'));
// OK (.get is not defined on a URL)
let myUrl = getTaintedUrl();
$('name').html(myUrl.get('name'));
}