Skip to content

Commit

Permalink
fix: update error
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Feb 28, 2023
1 parent 4efad3a commit b84d651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ export const Home: NextPage = () => {
setSummary("");
if (url) {
if (!url.includes("bilibili.com")) {
toast.error("Please enter a valid 哔哩哔哩 video");
toast.error("请输入哔哩哔哩视频长链接,暂不支持b23.tv或av号");
return;
}
setCurVideo(url);
} else {
if (!curVideo.includes("bilibili.com")) {
toast.error("Please enter a valid 哔哩哔哩 video");
toast.error("请输入哔哩哔哩视频长链接,暂不支持b23.tv或av号");
return;
}
router.replace(curUrl);
Expand Down

1 comment on commit b84d651

@vercel
Copy link

@vercel vercel bot commented on b84d651 Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.