return preference get promise
This commit is contained in:
parent
316dfcf06a
commit
3df916548f
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -1778,7 +1778,7 @@ function doPreferenceGet(key, success, fail) {
|
|||
key
|
||||
};
|
||||
|
||||
lbryProxy.preference_get(options).then(result => {
|
||||
return lbryProxy.preference_get(options).then(result => {
|
||||
if (result) {
|
||||
const preference = result[key];
|
||||
return success(preference);
|
||||
|
|
|
@ -96,7 +96,7 @@ export function doPreferenceGet(key: string, success: Function, fail?: Function)
|
|||
key,
|
||||
};
|
||||
|
||||
Lbry.preference_get(options)
|
||||
return Lbry.preference_get(options)
|
||||
.then(result => {
|
||||
if (result) {
|
||||
const preference = result[key];
|
||||
|
|
Loading…
Reference in a new issue