diff --git a/src/web/mjs/connectors/PixivComics.mjs b/src/web/mjs/connectors/PixivComics.mjs index 321aead66d4..d9ffe21a3db 100644 --- a/src/web/mjs/connectors/PixivComics.mjs +++ b/src/web/mjs/connectors/PixivComics.mjs @@ -19,8 +19,7 @@ export default class PixivComics extends Connector { } async _initializeConnector() { - let uri = new URL('viewer/stories/0', this.url); - let request = new Request(uri.href, this.requestOptions); + const request = new Request(new URL('viewer/stories/0', this.url), this.requestOptions); this.salt = await Engine.Request.fetchUI(request, `JSON.parse(document.querySelector('#__NEXT_DATA__').text).props.pageProps.salt`); }