19 lines
344 B
JavaScript
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';
|
|
});
|
|
}
|