Allowing W/L Presets customization
This commit is contained in:
1 parent
4d9300f6c4
commit
e6b5a21ae2
14 files changed
+303
-173
No files matched your search
@@ -19,9 +19,14 @@ OHIF.user.getData = key => {
|
||||
// Get the user persistent data
|
||||
const data = profile && profile.persistent;
|
||||
|
||||
if (data) {
|
||||
return data[key];
|
||||
}
|
||||
let result = data;
|
||||
const keys = key.split('.');
|
||||
keys.forEach(key => {
|
||||
if (typeof result !== 'object') return;
|
||||
result = result[key];
|
||||
});
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
// Store the persistent data by giving a key and a value to store
|
||||
|
||||
Reference in new issue
Block a user