refactor(jslib): remove `url` and `attribute` from `getAddress`, fix build
ci/woodpecker/push/woodpecker Pipeline was successful Details

refactor/sveltekit
Tomáš Mládek 2023-11-29 14:42:31 +01:00
parent db85fc11a6
commit dfcc1b1969
1 changed files with 1 additions and 7 deletions

View File

@ -217,13 +217,7 @@ export class UpEndApi {
}
response = await fetch(`${this.apiUrl}/address?type=${input}`);
} else {
if ("attribute" in input) {
response = await fetch(
`${this.apiUrl}/address?attribute=${input.attribute}`
);
} else if ("url" in input) {
response = await fetch(`${this.apiUrl}/address?url=${input.url}`);
} else if ("urlContent" in input) {
if ("urlContent" in input) {
response = await fetch(
`${this.apiUrl}/address?url_content=${input.urlContent}`
);