Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Living social now uses contentSnippet instead of title

  • Loading branch information...
commit f7a858afd3f6d5216642c0b2b4fda741d515701e 1 parent c8f1f02
unknown authored jonathonloo committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 background.html
View
7 background.html
@@ -118,7 +118,7 @@
crawl_json_feed(url,
function(response) {
var entries = response.responseData.feed.entries;
- store_deal(deal_source, entries);
+ store_deal(deal_source, entries);
}
);
})(deal_source, url);
@@ -136,7 +136,12 @@
for (index in entries) {
var title = entries[index].title;
var link = entries[index].link;
+ var content = entries[index].contentSnippet;
+ if(deal_source == 'Living Social')
+ {
+ title = content;
+ }
// If the deal doesn't exist, update the browser icon.
if (deal_titles.indexOf(title) == -1) {
chrome.browserAction.setIcon({"path" : "images/dealios22.png"});
Please sign in to comment.
Something went wrong with that request. Please try again.