~vrruiz/unity-webapps-yahoonews/fix-1188591

« back to all changes in this revision

Viewing changes to YahooNews.user.js

  • Committer: Víctor R. Ruiz
  • Date: 2013-07-31 15:27:23 UTC
  • Revision ID: victor.ruiz@canonical.com-20130731152723-y5oe8sw4yy8km7e8
Fix YahooNews.user.js:62->'res' is already defined

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    }
59
59
 
60
60
    // "All news" headlines. This are loaded using JavaScript
61
 
    var res = document.evaluate('//*[@class="body-wrap"]/h3/a', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
 
61
    res = document.evaluate('//*[@class="body-wrap"]/h3/a', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
62
62
    if (res.snapshotLength > 0) {
63
63
        showNotifications(res);
64
64
    }