merge angular-17 into dev to upgrade from Angular v16 to v17
This commit is contained in:
@@ -10,7 +10,7 @@ import { environment } from '../../../environments/environment';
|
||||
import { SettingsService } from 'app/settings/settings.service';
|
||||
|
||||
/** Http request (default) options headers. */
|
||||
const httpOptions = {
|
||||
const httpOptions: { headers: { [key: string]: string } } = {
|
||||
headers: {
|
||||
'Fineract-Platform-TenantId': environment.fineractPlatformTenantId
|
||||
}
|
||||
|
||||
@@ -107,7 +107,8 @@ export class HttpCacheService {
|
||||
*/
|
||||
setPersistence(persistence?: 'local' | 'session') {
|
||||
this.cleanCache();
|
||||
this.storage = persistence === 'local' || persistence === 'session' ? window[persistence + 'Storage'] : null;
|
||||
this.storage =
|
||||
persistence === 'local' ? window.localStorage : persistence === 'session' ? window.sessionStorage : null;
|
||||
this.loadCacheData();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user