I'm using rollup and babel to transpile ES6 code. Now i need this Recaptcha Callback function to be triggered when the Captcha has been checked.
Problem is that tree shaking or another mechanism filters this function out during transpilation process.
How can i keep recaptchaCallback()
in the final script to be triggered from outside?
import UIkit from 'uikit';
...
function recaptchaCallback() {
document.getElementsByClassName('g-recaptcha')[0].style.border = 'none';
};
...