Skip to content

Commit 7b1cab3

Browse files
committed
fix: fix apple music login window popup acting weird
1 parent 2d3374d commit 7b1cab3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pages/auth/apple-music.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ const Login: NextPage<SSRProps> = () => {
3636
const music = MusicKit.getInstance();
3737
const MUT = await music.authorize();
3838

39-
router.push(
39+
// // eslint-disable-next-line no-promise-executor-return
40+
// await new Promise((resolve) => setTimeout(resolve, 500));
41+
42+
window.location.replace(
4043
api.http.resolveUrl(
4144
'/auth/APPLEMUSIC/callback/music',
4245
true,

0 commit comments

Comments
 (0)