Is there a native wp.media way to detect who “opened” wp.media.frame

I think I got it ,

if (wp.media) {
    wp.media.view.Modal.prototype.on('open', function(data) {
        console.log(wp.media.frame.modal.clickedOpenerEl);
    });
}

let me know if there is better solution.

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