From 91e5e1af59742db6c9d1870565d08f0a0226449b Mon Sep 17 00:00:00 2001 From: MikeZeDev Date: Mon, 16 Sep 2024 11:49:56 +0000 Subject: [PATCH] Update PixivComics.mjs --- src/web/mjs/connectors/PixivComics.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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`); }