File tree 3 files changed +8
-11
lines changed
3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ v2.23.0]
4
+
5
+ ### Fixes
6
+
7
+ - Properly clear analytics cookies on logout [ #3269 ] ( https://github.com/Automattic/simplenote-electron/pull/3269 )
8
+
3
9
## [ v2.22.2]
4
10
5
11
### Enhancements
Original file line number Diff line number Diff line change @@ -16,21 +16,11 @@ const clearStorage = (): Promise<void> =>
16
16
localStorage . removeItem ( 'localQueue:note' ) ;
17
17
localStorage . removeItem ( 'localQueue:preferences' ) ;
18
18
localStorage . removeItem ( 'localQueue:tag' ) ;
19
+ localStorage . removeItem ( 'simpleNote' ) ;
19
20
localStorage . removeItem ( 'stored_user' ) ;
20
21
sessionStorage . clear ( ) ;
21
22
window . electron ?. send ( 'appStateUpdate' , { } ) ;
22
23
23
- const settings = localStorage . getItem ( 'simpleNote' ) ;
24
- if ( settings ) {
25
- try {
26
- const { accountName, ...otherSettings } = JSON . parse ( settings ) ;
27
- localStorage . setItem ( 'simpleNote' , JSON . stringify ( otherSettings ) ) ;
28
- } catch ( e ) {
29
- // pass - we only care if we can successfully do this,
30
- // not if we fail to do it
31
- }
32
- }
33
-
34
24
Promise . all ( [
35
25
new Promise ( ( resolve ) => {
36
26
const r = indexedDB . deleteDatabase ( 'ghost' ) ;
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ export const middleware: S.Middleware = (store) => {
100
100
break ;
101
101
case 'LOGOUT' :
102
102
record ( 'user_signed_out' ) ;
103
+ analytics . clearedIdentity ( ) ;
103
104
break ;
104
105
case 'OPEN_NOTE' :
105
106
record ( 'list_note_opened' ) ;
You can’t perform that action at this time.
0 commit comments