(body)
| 2 | |
| 3 | |
| 4 | export function isPushIncrementing(body) { |
| 5 | if (!body.data || !body.data.badge) { |
| 6 | return false; |
| 7 | } |
| 8 | |
| 9 | const badge = body.data.badge; |
| 10 | if (typeof badge == 'string' && badge.toLowerCase() == 'increment') { |
| 11 | return true; |
| 12 | } |
| 13 | |
| 14 | return ( |
| 15 | typeof badge == 'object' && |
| 16 | typeof badge.__op == 'string' && |
| 17 | badge.__op.toLowerCase() == 'increment' && |
| 18 | Number(badge.amount) |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | const localizableKeys = ['alert', 'title']; |
| 23 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…