We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bc6428 commit 5c416b8Copy full SHA for 5c416b8
lib/routes/2048/index.tsx
@@ -72,7 +72,7 @@ async function handler(ctx) {
72
const onclickValue = $('.button').first().attr('onclick');
73
const targetUrl = onclickValue?.match(/window\.open\('([^']+)'/)?.[1];
74
75
- return { url: targetUrl };
+ return { url: new URL(targetUrl, 'https://2048.info').href };
76
});
77
// 获取重定向后的url
78
const redirectResponse = await ofetch.raw(domainInfo.url);
0 commit comments