diff options
author | Anton Tananaev <anton@traccar.org> | 2022-08-17 09:22:41 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-08-17 09:22:41 -0700 |
commit | aa72fc6dbe2be7e3322a8a6110a6997435a0679a (patch) | |
tree | 2f01781678971fa34e0b0a2fea3373d8f1bc4e44 /modern/src/common/components/NativeInterface.js | |
parent | 1184b5902be66c474f904fdbd8deb4445f4fc092 (diff) | |
download | trackermap-web-aa72fc6dbe2be7e3322a8a6110a6997435a0679a.tar.gz trackermap-web-aa72fc6dbe2be7e3322a8a6110a6997435a0679a.tar.bz2 trackermap-web-aa72fc6dbe2be7e3322a8a6110a6997435a0679a.zip |
Remove notification token on logout
Diffstat (limited to 'modern/src/common/components/NativeInterface.js')
-rw-r--r-- | modern/src/common/components/NativeInterface.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modern/src/common/components/NativeInterface.js b/modern/src/common/components/NativeInterface.js index b36a3d26..d36b64c5 100644 --- a/modern/src/common/components/NativeInterface.js +++ b/modern/src/common/components/NativeInterface.js @@ -33,6 +33,7 @@ const NativeInterface = () => { useEffectAsync(async () => { if (user && token) { + window.localStorage.setItem('notificationToken', token); setToken(null); const tokens = user.attributes.notificationTokens?.split(',') || []; |