Skip to content

Commit

Permalink
Updated Playbook logic
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-bluetext committed Aug 2, 2024
1 parent b91dd13 commit cf2a50d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions blocks/marketo/marketo.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,17 @@ const embedMarketoForm = (marketoId, formId, successUrl) => {
});
}
} catch (error) {
console.error('Error with Drift API calls:', error);
console.log('Error with Drift API calls:', error);

Check warning on line 61 in blocks/marketo/marketo.js

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
}
});
} else {
console.error('Drift is not defined');
console.log('Drift is not defined');

Check warning on line 65 in blocks/marketo/marketo.js

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
location.href = successUrl;
if (window._satellite) {
_satellite.track('formSubmit', {
formName: document.title,
});
}
}
// Return false to prevent the submission handler continuing with its own processing
return false;
Expand Down

0 comments on commit cf2a50d

Please sign in to comment.