Skip to content

Commit

Permalink
Update PixivComics.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev authored Sep 16, 2024
1 parent 29aa921 commit 91e5e1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/web/mjs/connectors/PixivComics.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}

Expand Down

0 comments on commit 91e5e1a

Please sign in to comment.