mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
add semi-colon at end of line; remove apostrophe from comment
This commit is contained in:
@@ -100,7 +100,7 @@ angular.module('habitrpg')
|
|||||||
if (cb) return op(req,cb);
|
if (cb) return op(req,cb);
|
||||||
op(req,function(err,response) {
|
op(req,function(err,response) {
|
||||||
for(var updatedItem in req.body) {
|
for(var updatedItem in req.body) {
|
||||||
var itemUpdateResponse = userNotifications[updatedItem]
|
var itemUpdateResponse = userNotifications[updatedItem];
|
||||||
if(itemUpdateResponse) Notification.text(itemUpdateResponse);
|
if(itemUpdateResponse) Notification.text(itemUpdateResponse);
|
||||||
}
|
}
|
||||||
if (err) {
|
if (err) {
|
||||||
@@ -108,7 +108,7 @@ angular.module('habitrpg')
|
|||||||
console.log(message);
|
console.log(message);
|
||||||
if (MOBILE_APP) Notification.push({type:'text',text:message});
|
if (MOBILE_APP) Notification.push({type:'text',text:message});
|
||||||
else Notification.text(message);
|
else Notification.text(message);
|
||||||
// In the case of 200s, they're friendly alert messages like "You're pet has hatched!" - still send the op
|
// In the case of 200s, they're friendly alert messages like "Your pet has hatched!" - still send the op
|
||||||
if ((err.code && err.code >= 400) || !err.code) return;
|
if ((err.code && err.code >= 400) || !err.code) return;
|
||||||
}
|
}
|
||||||
userServices.log({op:k, params: req.params, query:req.query, body:req.body});
|
userServices.log({op:k, params: req.params, query:req.query, body:req.body});
|
||||||
|
|||||||
Reference in New Issue
Block a user