mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
Release 8.1.0 (#11143)
This commit is contained in:
committed by
GitHub
parent
2e20c3da45
commit
de537f0a0d
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
|
||||
export class Storage {
|
||||
|
||||
private static instance: Storage;
|
||||
|
||||
_storage: any;
|
||||
@@ -28,8 +27,8 @@ export class Storage {
|
||||
}
|
||||
}
|
||||
|
||||
public static getInstance(){
|
||||
if(!Storage.instance){
|
||||
public static getInstance() {
|
||||
if (!Storage.instance) {
|
||||
Storage.instance = new Storage();
|
||||
}
|
||||
return Storage.instance;
|
||||
@@ -38,7 +37,7 @@ export class Storage {
|
||||
supportsStorage() {
|
||||
try {
|
||||
return 'localStorage' in window && window.localStorage !== null;
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user