Not able to extend wp.media.view.AttachmentsBrowser

Turns out the reason this happened is because when I registered/enqueued the script, I had in_footer = true. Setting this to the default of false solved the problem.

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