Comment 2 for bug 1073397

Revision history for this message
Andrew Flegg (aflegg) wrote :

Once passed that there are a couple of other issues:

1) `checkMessangesCount()' [sic] doesn't handle the fact that there could be newlines/whitespace after the "Mail" (there is in my DOM)
2) The label identification code is completely wrong for my setup.

The attached patch to GMail.user.js includes the changes necessary for the integration to work for me:

0) Removes the 'login' attribute to Unity.init. This should be replaced with something else so that the intended functionality still works!
1) Strip any trailing whitespace off before comparing the text content to 'Gmail' or 'Mail'
2) Use an XPath very similar to that used to find the 'Inbox' link.