Skip to content

Commit

Permalink
fix as > 1 for days
Browse files Browse the repository at this point in the history
  • Loading branch information
fayland committed May 25, 2014
1 parent 025ce36 commit 3e54439
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/qiandao/xiami.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
url : 'http://www.xiami.com/task/signin',
dataType : 'html',
success : function(data) {
if (parseInt(data) === 1 || parseInt(data) === 2) {
if (parseInt(data) > 0) {
chrome.runtime.sendMessage({
method: "setLocalStorage", key: "xiami_status", val: today
}, function(res) {});
chrome.runtime.sendMessage({
method: "setLocalStorage", key: "xiami_points", val: parseInt(data)
}, function(res) {});
}
}
});
Expand Down

0 comments on commit 3e54439

Please sign in to comment.