Skip to content
Snippets Groups Projects
Commit f69a65cc authored by syuilo's avatar syuilo
Browse files

Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop

parents 7037f2d5 dd93a07c
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