How to define active widget with js in a customizer

Found in the source code the answer to my question, maybe someone will come in handy:

jQuery(document).on('expand', function (event) {
        console.log(event.target);
});

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)