Skip to content
Snippets Groups Projects
Commit dd93a07c authored by tamaina's avatar tamaina
Browse files

fix(client): fix script id of Captcha

parent 66f3de62
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment