1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 14:28:49 +09:00

fix(client): fix script id of Captcha

This commit is contained in:
tamaina 2022-12-19 16:31:21 +00:00
parent 66f3de6262
commit dd93a07c0f

View File

@ -62,14 +62,16 @@ const src = computed(() => {
}
});
const scriptId = computed(() => `script-${props.provider}`)
const captcha = computed<Captcha>(() => window[variable.value] || {} as unknown as Captcha);
if (loaded) {
available.value = true;
} else {
(document.getElementById(props.provider) || document.head.appendChild(Object.assign(document.createElement('script'), {
(document.getElementById(scriptId.value) || document.head.appendChild(Object.assign(document.createElement('script'), {
async: true,
id: props.provider,
id: scriptId.value,
src: src.value,
})))
.addEventListener('load', () => available.value = true);