Skip to content

Commit f4dbed3

Browse files
Rémi Denèlejosteink
Rémi Denèle
authored andcommitted
#445 - Fix api.helper.get.is_delegated_inbox check (#447)
Fix api.helper.get.is_delegated_inbox check Delegated inbox detection based on DOM + Bump version to 0.6.14
1 parent 6d0c33b commit f4dbed3

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
# Changelog
33

4+
## Version 0.6.14
5+
6+
- Fix delegated inbox detection in `api.helper.get.is_delegated_inbox`
7+
48
## Version 0.6.13
59

610
- Fix bug in `api.get.visible_emails`.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gmail-js",
3-
"version": "0.6.13",
3+
"version": "0.6.14",
44
"description": "JavaScript API for Gmail (useful for chrome extensions)",
55
"main": "src/gmail.js",
66
"types": "src/gmail.d.ts",

src/gmail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,7 @@ var Gmail_ = function(localJQuery) {
17591759

17601760

17611761
api.helper.get.is_delegated_inbox = function() {
1762-
return api.tracker.globals[17][5][0] === "fwd";
1762+
return $(".identityUserDelegatedAccount").length === 1;
17631763
};
17641764

17651765

0 commit comments

Comments
 (0)