Comment 48 for bug 1068662

Revision history for this message
spi (spi-gmxpro) wrote : Re: webapps are not working :(

Got Gmail webapp to support the message indicator - but only in Firefox. Launching Gmail with Chromium still doesn't support the message indicator.

As somebody already posted in
https://bugs.launchpad.net/ubuntu/+source/unity-webapps-gmail/+bug/1073397/comments/24 and https://bugs.launchpad.net/ubuntu/+source/unity-webapps-gmail/+bug/1073397/comments/25
I changed two lines in /usr/share/unity-webapps/userscripts/unity-webapps-gmail/GMail.user.js which were:

1st original line
var tag = document.evaluate('//div[@aria-label="Navigate to"]/span', document, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue;

translated into German and changed to
var tag = document.evaluate('//div[@aria-label="zu wechseln"]/span', document, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue;

2nd line
if (tag.textContent != 'Gmail' && tag.textContent != 'Mail') {

changed to
if (tag != null && tag.textContent != 'Gmail' && tag.textContent != 'Mail') {

Then deleted the webapp integration and restarted all unity-webapps services and daemons, recreated webapp integration with Firefox for Gmail and saw the unread message counter. But as mentioned in the beginning as soon I use Chromium the message counter is not set in the message indicator.