File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed
Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
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+
39## [ v2.22.2]
410
511### Enhancements
Original file line number Diff line number Diff line change @@ -16,21 +16,11 @@ const clearStorage = (): Promise<void> =>
1616 localStorage . removeItem ( 'localQueue:note' ) ;
1717 localStorage . removeItem ( 'localQueue:preferences' ) ;
1818 localStorage . removeItem ( 'localQueue:tag' ) ;
19+ localStorage . removeItem ( 'simpleNote' ) ;
1920 localStorage . removeItem ( 'stored_user' ) ;
2021 sessionStorage . clear ( ) ;
2122 window . electron ?. send ( 'appStateUpdate' , { } ) ;
2223
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-
3424 Promise . all ( [
3525 new Promise ( ( resolve ) => {
3626 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) => {
100100 break ;
101101 case 'LOGOUT' :
102102 record ( 'user_signed_out' ) ;
103+ analytics . clearedIdentity ( ) ;
103104 break ;
104105 case 'OPEN_NOTE' :
105106 record ( 'list_note_opened' ) ;
You can’t perform that action at this time.
0 commit comments