laipower/wp-content/plugins/easy-digital-downloads/assets/js/admin/settings/recapture/index.js

19 lines
344 B
JavaScript

export const recaptureRemoteInstall = () => {
var data = {
'action': 'edd_recapture_remote_install',
};
jQuery.post( ajaxurl, data, function( response ) {
if( ! response.success ) {
if( confirm( response.data.error ) ) {
location.reload();
return;
}
}
window.location.href = 'https://recapture.io/register';
});
}