Skip to content

Commit 7aa6a3f

Browse files
committed
Merge pull request KartikTalwar#37 from GeneralZero/patch-2
Added api.get.compose_ids()
2 parents 73cf637 + 89da88a commit 7aa6a3f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/gmail.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,17 @@ var Gmail = function() {
195195
}
196196
return [];
197197
}
198-
198+
199+
api.get.compose_ids = function() {
200+
var ret = [];
201+
var dom = $(".AD [name=draft]");
202+
for (var i = 0; i < dom.length; i++) {
203+
if(dom[i].value != "undefined"){
204+
ret.push(dom[i].value);
205+
}
206+
};
207+
return ret;
208+
}
199209

200210
api.get.email_id = function() {
201211
var hash = null;

0 commit comments

Comments
 (0)