Refactor codes
This commit is contained in:
parent
b862c055ae
commit
9daa900793
3 changed files with 8 additions and 17 deletions
|
@ -371,11 +371,10 @@ export default Vue.extend({
|
|||
}
|
||||
|
||||
if (recaptchaLoaded) { // loaded
|
||||
delete window.onRecaptchaLoad;
|
||||
renderRecaptchaPreview();
|
||||
} else { // init
|
||||
window.onRecaptchaLoad = () => {
|
||||
recaptchaLoaded = true;
|
||||
recaptchaLoaded = delete window.onRecaptchaLoad;
|
||||
renderRecaptchaPreview();
|
||||
};
|
||||
const script = document.createElement('script');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue