Skip to content

Commit

Permalink
Version 1.1.11: a lot of ones!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
josteink committed Sep 21, 2023
1 parent 2b3f5e3 commit 080b394
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# Changelog

## Version 1.1.11

- Fix `api.observe.on("view_email", ...)`not working.

## Version 1.1.10

- Fix `api.dom.right_toolbar()`, by @stevepeak.
Expand Down
2 changes: 1 addition & 1 deletion package.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gmail-js",
"version": "1.1.10",
"version": "1.1.11",
"description": "JavaScript API for Gmail (useful for chrome extensions)",
"main": "src/gmail.js",
"types": "src/gmail.d.ts",
Expand Down
10 changes: 7 additions & 3 deletions src/gmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -2478,10 +2478,14 @@ var Gmail = function(localJQuery) {
// class depends if is_preview_pane - Bu for preview pane, nH for standard view,
// FIXME: the empty class ("") is for emails opened after thread is rendered (causes a storm of updates)
class: ["Bu", "nH", ""],
sub_selector: "div.adn",
handler: function(match, callback) {
match = new api.dom.email(match);
callback(match);
setTimeout(() => {
match = match.find("div.adn.ads");
if (match.length) {
match = new api.dom.email(match);
callback(match);
}
}, 0);
}
},

Expand Down

0 comments on commit 080b394

Please sign in to comment.