Skip to content
Browse files

Living social now uses contentSnippet instead of title

  • Loading branch information...
1 parent c8f1f02 commit 7948aa1210965109a31064bd3620254a3de2309f unknown committed with jonathonloo Jan 9, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 background.html
View
6 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);
@@ -137,6 +137,10 @@
var title = entries[index].title;
var link = entries[index].link;
+ if(deal_source == 'Living Social')
+ {
+ title = entries[index].contentSnippet;
+ }
// If the deal doesn't exist, update the browser icon.
if (deal_titles.indexOf(title) == -1) {
chrome.browserAction.setIcon({"path" : "images/dealios22.png"});

0 comments on commit 7948aa1

Please sign in to comment.
Something went wrong with that request. Please try again.