aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-23 15:53:31 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-23 15:53:31 -0700
commit468ed8b75c45b3d713449ced8466bab22227cb9f (patch)
tree6560210d52eeb3135059134e63032aea91753e97
parente8bbdc9749b13aa3aa1d6047d7136e66314b7c48 (diff)
downloadtrackermap-web-468ed8b75c45b3d713449ced8466bab22227cb9f.tar.gz
trackermap-web-468ed8b75c45b3d713449ced8466bab22227cb9f.tar.bz2
trackermap-web-468ed8b75c45b3d713449ced8466bab22227cb9f.zip
Limit to 3 tokens
-rw-r--r--modern/src/common/components/NativeInterface.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/common/components/NativeInterface.js b/modern/src/common/components/NativeInterface.js
index 75b954a8..aee4c042 100644
--- a/modern/src/common/components/NativeInterface.js
+++ b/modern/src/common/components/NativeInterface.js
@@ -40,7 +40,7 @@ const NativeInterface = () => {
...user,
attributes: {
...user.attributes,
- notificationTokens: [...tokens, token].join(','),
+ notificationTokens: [...tokens.slice(-2), token].join(','),
},
};