mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 10:12:21 +00:00
Preventing cardRead from notifying user. (#8473)
* added condition to prevent readCard operations from sending a notification * created constant array to contain opNames for notifications we want to suppress and adjusted condition to accordingly * replaced const with var to past karma test
This commit is contained in:
parent
17c0f795cc
commit
e3c1eaa9d2
1 changed files with 2 additions and 1 deletions
|
|
@ -158,7 +158,8 @@ angular.module('habitrpg')
|
|||
|
||||
var clientMessage = clientResponse[1];
|
||||
|
||||
if (clientMessage) {
|
||||
var opNamesWithoutNotification = ["readCard"];
|
||||
if (clientMessage && opNamesWithoutNotification.indexOf(opName) === -1) {
|
||||
Notification.text(clientMessage);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue