unread_inbox_emails with new UI
unread_inbox_emails with new UI

In the new version (2018) of Gmail the function api.get.unread_*_emails not get the correct value of unread items, because the new version don't report in the anchor value this number, but only the label.

Digging to the DOM we can see switching from text to title is the solution, also compatible with older version too.
KartikTalwar/gmail.js