Skip to content

Commit e5125b9

Browse files
committed
initial google inbox support (untested)
1 parent 833c45d commit e5125b9

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

extension/manifest.json

+10
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@
5757
"run_at": "document_end",
5858
"all_frames": true
5959
},
60+
{
61+
"matches": [ "https://inbox.google.com/*"],
62+
"js": [
63+
"xoauth2.js",
64+
"webmail/gmail/inbox.js"
65+
],
66+
"css": ["skin/gmail_overlay.css"],
67+
"run_at": "document_end",
68+
"all_frames": false
69+
},
6070
{
6171
"matches": [ "https://mail.google.com/*", "http://mail.google.com/*" ],
6272
"js": [

extension/webmail/gmail/gmail.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,8 @@ webpg.utils.sendRequest({
14161416
function(aEvent) {
14171417
// We need to filter based on the URL for mozilla, as we do
14181418
// not have the option to set the overlay by URL
1419-
if (aEvent.originalTarget.location.host === "mail.google.com") {
1419+
if (aEvent.originalTarget.location.host === "mail.google.com" ||
1420+
aEvent.originalTarget.location.host === "inbox.google.com") {
14201421
webpg.gmail.getCanvasFrameDocument()
14211422
.addEventListener("DOMSubtreeModified",
14221423
webpg.gmail.gmailChanges, false
@@ -1450,7 +1451,8 @@ webpg.utils.sendRequest({
14501451
function(aEvent) {
14511452
// We need to filter based on the URL for mozilla, as we do
14521453
// not have the option to set the overlay by URL
1453-
if (aEvent.originalTarget.location.host === "mail.google.com") {
1454+
if (aEvent.originalTarget.location.host === "mail.google.com" ||
1455+
aEvent.originalTarget.location.host === "inbox.google.com") {
14541456
webpg.gmail_observer.observe(webpg.gmail.getCanvasFrameDocument(), config);
14551457
webpg.gmail.appcontent.removeEventListener("DOMContentLoaded", arguments.callee, true);
14561458
}

0 commit comments

Comments
 (0)