Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Living social now uses contentSnippet instead of title

  • Loading branch information...
commit eeec859933330573868bcbae2e26f226b05052d2 1 parent c8f1f02
unknown authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +6 1 background.html
7 background.html
@@ -118,7 +118,7 @@
118 118 crawl_json_feed(url,
119 119 function(response) {
120 120 var entries = response.responseData.feed.entries;
121   - store_deal(deal_source, entries);
  121 + store_deal(deal_source, entries);
122 122 }
123 123 );
124 124 })(deal_source, url);
@@ -136,7 +136,12 @@
136 136 for (index in entries) {
137 137 var title = entries[index].title;
138 138 var link = entries[index].link;
  139 + var content = entries[index].contentSnippet;
139 140
  141 + if(deal_source == 'Living Social')
  142 + {
  143 + title = content;
  144 + }
140 145 // If the deal doesn't exist, update the browser icon.
141 146 if (deal_titles.indexOf(title) == -1) {
142 147 chrome.browserAction.setIcon({"path" : "images/dealios22.png"});

0 comments on commit eeec859

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