File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,17 +89,6 @@ export default function _Persistence(mpInstance) {
8989 self . storeDataInMemory ( cookies ) ;
9090 }
9191
92- // https://go.mparticle.com/work/SQDSDKS-6046
93- // Stores all non-current user MPID information into the store
94- for ( var key in allData ) {
95- if ( allData . hasOwnProperty ( key ) ) {
96- if ( ! SDKv2NonMPIDCookieKeys [ key ] ) {
97- mpInstance . _Store . nonCurrentUserMPIDs [ key ] =
98- allData [ key ] ;
99- }
100- }
101- }
102-
10392 // https://go.mparticle.com/work/SQDSDKS-6048
10493 try {
10594 if ( mpInstance . _Store . isLocalStorageAvailable ) {
@@ -128,6 +117,17 @@ export default function _Persistence(mpInstance) {
128117 'Error loading products in initialization: ' + e
129118 ) ;
130119 }
120+
121+ // https://go.mparticle.com/work/SQDSDKS-6046
122+ // Stores all non-current user MPID information into the store
123+ for ( var key in allData ) {
124+ if ( allData . hasOwnProperty ( key ) ) {
125+ if ( ! SDKv2NonMPIDCookieKeys [ key ] ) {
126+ mpInstance . _Store . nonCurrentUserMPIDs [ key ] =
127+ allData [ key ] ;
128+ }
129+ }
130+ }
131131 self . update ( ) ;
132132 } catch ( e ) {
133133 // If cookies or local storage is corrupt, we want to remove it
You can’t perform that action at this time.
0 commit comments