~abreu-alexandre/webapps-applications/fix-migration-script-icon-order

« back to all changes in this revision

Viewing changes to src/GMail.user.js.in

  • Committer: Ken VanDine
  • Date: 2012-07-17 16:25:25 UTC
  • mfrom: (80.1.234 webapps-applications)
  • Revision ID: ken.vandine@canonical.com-20120717162525-ielfgvd2wd1ypjn0
Tags: 1.7.0-0quantal1
releasing version 1.7.0-0quantal1

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
            setTimeout(wait, 1000);
107
107
            return;
108
108
        }
109
 
        var login = doc.evaluate('//div[@role="navigation"]/div/div[1]/div[3]/div/ol/li/a/span', doc, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.textContent;
 
109
        var login = doc.evaluate('//div[@role="navigation"]/div/div[1]/div[3]/div/ol/li[4]/div/div/div/div[2]/span[2]', doc, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.textContent;
 
110
        if (login.indexOf("@") === -1) {
 
111
            login = "";
 
112
        }
110
113
 
111
114
        Unity.init({ name: "GMail",
112
115
                     login: login,