Skip to content

Commit

Permalink
fix(frontend): Captcha のエラーハンドリングを修正 (MisskeyIO#768)
Browse files Browse the repository at this point in the history
(cherry picked from commit 88912d0)
  • Loading branch information
riku6460 authored and kakkokari-gtyih committed Oct 21, 2024
1 parent d6caa4d commit 62bbc0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/components/MkCaptcha.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ async function requestRender() {
sitekey: props.sitekey,
theme: defaultStore.state.darkMode ? 'dark' : 'light',
callback: callback,
'expired-callback': callback,
'error-callback': callback,
'expired-callback': () => callback(undefined),
'error-callback': () => callback(undefined),
});
} else if (props.provider === 'mcaptcha' && props.instanceUrl && props.sitekey) {
const { default: Widget } = await import('@mcaptcha/vanilla-glue');
Expand Down

0 comments on commit 62bbc0b

Please sign in to comment.