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.
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 /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 unity-webapps/ userscripts/ unity-webapps- gmail/GMail. user.js which were:
https:/
I changed two lines in /usr/share/
1st original line evaluate( '//div[ @aria-label= "Navigate to"]/span', document, null, XPathResult. ANY_UNORDERED_ NODE_TYPE, null).singleNod eValue;
var tag = document.
translated into German and changed to evaluate( '//div[ @aria-label= "zu wechseln"]/span', document, null, XPathResult. ANY_UNORDERED_ NODE_TYPE, null).singleNod eValue;
var tag = document.
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.