Skip to content

Commit

Permalink
Fix Steam notifications for website change
Browse files Browse the repository at this point in the history
Fixes #3.
  • Loading branch information
Terrance committed Aug 13, 2015
1 parent 2bfe68b commit 7bca50d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Homely/res/js/homely.js
Original file line number Diff line number Diff line change
Expand Up @@ -1588,11 +1588,11 @@ $(document).ready(function() {
},
count: function(notif, resp) {
var vals = [];
if (notif.enable.comments) vals.push(parseInt($(".header_notification_comments", resp).text().trim().split(" ")[0]));
if (notif.enable.inventory) vals.push(parseInt($(".header_notification_items", resp).text().trim().split(" ")[0]));
if (notif.enable.invites) vals.push(parseInt($(".header_notification_invites", resp).text().trim().split(" ")[0]));
if (notif.enable.gifts) vals.push(parseInt($(".header_notification_gifts", resp).text().trim().split(" ")[0]));
if (notif.enable.messages) vals.push(parseInt($(".header_notification_offlinemessages", resp).text().trim().split(" ")[0]));
if (notif.enable.comments) vals.push(parseInt($(".header_notification_comments span[style='']", resp).text().trim().split(" ")[0]));
if (notif.enable.inventory) vals.push(parseInt($(".header_notification_items span[style='']", resp).text().trim().split(" ")[0]));
if (notif.enable.invites) vals.push(parseInt($(".header_notification_invites span[style='']", resp).text().trim().split(" ")[0]));
if (notif.enable.gifts) vals.push(parseInt($(".header_notification_gifts span[style='']", resp).text().trim().split(" ")[0]));
if (notif.enable.messages) vals.push(parseInt($(".header_notification_offlinemessages span[style='']", resp).text().trim().split(" ")[0]));
return vals;
}
},
Expand Down

0 comments on commit 7bca50d

Please sign in to comment.