Gaston Mosteiro
02/06/2024, 9:21 PMdefine('CustomServiceController', ['Application'],
function (Application) {
'use strict'
Application.on('before:Newsletter.subscribe', function (model, data) {
try {
//Code ......
erictgrubaugh
02/06/2024, 9:30 PM'CustomServiceController'
) and on the use strict
, but removing those, the rest seems fineGaston Mosteiro
02/06/2024, 9:32 PMerictgrubaugh
02/06/2024, 9:32 PMApplication
? I assumed it was a third-party library you're usingGaston Mosteiro
02/06/2024, 9:38 PMerictgrubaugh
02/06/2024, 9:41 PMGaston Mosteiro
02/06/2024, 11:42 PM