Fix the issues with customized store and retrieve functions for hot keys and window/level presets

This commit is contained in:
Evren Ozkan committed 2017-12-13 19:41:47 -05:00
1 parent 6b8613017e
commit 51d6a64c45
2 files changed
+10 -2

No files matched your search

@@ -33,7 +33,7 @@ export class HotkeysManager {
const storageKey = `hotkeysDefinitions.${contextName}`;
return new Promise((resolve, reject) => {
if (this.storeFunction) {
this.storeFunction(contextName, definitions).then(resolve).catch(reject);
this.storeFunction.call(this, storageKey, definitions).then(resolve).catch(reject);
} else if (Meteor.userId()) {
OHIF.user.setData(storageKey, definitions).then(resolve).catch(reject);
} else {