fix token grabbing
This commit is contained in:
parent
aae568b184
commit
fa3e91663d
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ export async function getToken(baseUrl: string): Promise<string> {
|
|||
const indexResponse = await request(baseUrl);
|
||||
const indexBody = await indexResponse.body.text();
|
||||
|
||||
const jsRegex = /\/assets\/index-legacy-[^/]+\.js/;
|
||||
const jsRegex = /\/assets\/index-legacy[~-][^/]+\.js/;
|
||||
const jsPath = indexBody.match(jsRegex)?.[0];
|
||||
|
||||
if (!jsPath) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue