Skip to content

Commit

Permalink
added a comment for new URL()` base path
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaster committed Jul 1, 2021
1 parent fa7641b commit 7b791b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/sdk-rtl/src/paging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ export class Paging<TSuccess extends ILength, TError>
}

parse(raw: IRawResponse): IPager<TSuccess, TError> {
// Default the base so relative paths are initialized correctly
const req = new URL(raw.url, 'https://localhost')
const params = req.searchParams
this.limit = Paging.paramDefault(params.get('limit'), -1)
Expand Down

0 comments on commit 7b791b6

Please sign in to comment.