Allowing W/L Presets customization

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2017-06-14 09:19:49 +02:00
1 parent 4d9300f6c4
commit e6b5a21ae2
14 files changed
+303 -173

No files matched your search

+8 -3
View File
@@ -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