Given a 3rd-party Electron app (in my case WhatsApp.app for OSX) I'd like to intercept it's calls to Notification Center as well as calls made to update it's badge. (Specifically I want this so I can display the "unread count" in the system menu bar, using TextBar).
There's an app.asar
archive under Resources/
, and I can see it uses a specific node module for notifications.
Before I dig further, assuming I find what I want to change, what's the way to go about intercepting those calls later? (Complete Electron newbie).