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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1068662

Title:
  webapps are not working :(

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-chromium-extension/+bug/1068662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to