1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 06:18:40 +09:00

fix(frontend): Captcha のエラーハンドリングを修正 (MisskeyIO#768)

This commit is contained in:
riku6460 2024-10-21 01:05:39 +09:00 committed by GitHub
parent 65854911bc
commit 88912d0f8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,8 +100,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');