fix(user-preferences): Fix the issues with saving/retrieving user preferences in OHIFViewer
This commit is contained in:
1 parent
5017fd13af
commit
a4b8f2c5ed
4 files changed
+8
-3
No files matched your search
@@ -153,7 +153,7 @@ class WindowLevelPresetsManager {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (this.retrieveFunction) {
|
||||
this.retrieveFunction.call(this).then(resolve).catch(reject);
|
||||
} else if (OHIF.user) {
|
||||
} else if (OHIF.user.userLoggedIn()) {
|
||||
try {
|
||||
resolve(OHIF.user.getData(WL_STORAGE_KEY));
|
||||
} catch(error) {
|
||||
|
||||
Reference in new issue
Block a user