mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
Add test for window attribute
This commit is contained in:
@@ -13,8 +13,11 @@ const config: NeteaseCaptcha.Config = {
|
||||
const onLoad: NeteaseCaptcha.onLoad = (instance: NeteaseCaptcha.Instance) => {
|
||||
instance.refresh();
|
||||
instance.destroy();
|
||||
if (instance.popUp) {
|
||||
instance.popUp();
|
||||
}
|
||||
};
|
||||
|
||||
function init(initNECaptcha: NeteaseCaptcha.InitFunction): void {
|
||||
initNECaptcha(config, onLoad);
|
||||
if (window.initNECaptcha) {
|
||||
window.initNECaptcha(config, onLoad);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user