File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1619,14 +1619,10 @@ function createIdentityCache(mpInstance) {
16191619 // Identity expects mpInstance._Identity.idCache to always exist. DisabledVault
16201620 // ensures no identity response data is written to localStorage when noFunctional is true
16211621 if ( mpInstance . _CookieConsentManager ?. getNoFunctional ( ) ) {
1622- return new DisabledVault ( `${ mpInstance . _Store . storageName } -id-cache` , {
1623- logger : mpInstance . Logger ,
1624- } ) ;
1622+ return new DisabledVault ( `${ mpInstance . _Store . storageName } -id-cache` ) ;
16251623 }
16261624
1627- return new LocalStorageVault ( `${ mpInstance . _Store . storageName } -id-cache` , {
1628- logger : mpInstance . Logger ,
1629- } ) ;
1625+ return new LocalStorageVault ( `${ mpInstance . _Store . storageName } -id-cache` ) ;
16301626}
16311627
16321628function runPreConfigFetchInitialization ( mpInstance , apiKey , config ) {
Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ export class SessionStorageVault<StorableItem> extends BaseVault<StorableItem> {
8282
8383// DisabledVault is used when persistence is disabled by privacy flags.
8484export class DisabledVault < StorableItem > extends BaseVault < StorableItem > {
85- constructor ( storageKey : string , options ?: IVaultOptions ) {
86- super ( storageKey , window . localStorage , options ) ;
85+ constructor ( storageKey : string ) {
86+ super ( storageKey , window . localStorage ) ;
8787 this . contents = null ;
8888 this . storageObject . removeItem ( this . _storageKey ) ;
8989 }
You can’t perform that action at this time.
0 commit comments