mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Refactor code
This commit is contained in:
parent
f4c140b087
commit
90a0a0257e
@ -40,11 +40,11 @@ export default Vue.extend({
|
||||
if (window.hcaptcha) { // loaded
|
||||
this.available = true;
|
||||
} else {
|
||||
(document.getElementById('hcaptcha') || (x => document.head.appendChild(Object.assign(x, {
|
||||
(document.getElementById('hcaptcha') || document.head.appendChild(Object.assign(document.createElement('script'), {
|
||||
async: true,
|
||||
id: 'hcaptcha',
|
||||
src: 'https://hcaptcha.com/1/api.js?render=explicit',
|
||||
})))(document.createElement('script')))
|
||||
})))
|
||||
.addEventListener('load', () => this.available = true);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user