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
|
key
|
||||||
};
|
};
|
||||||
|
|
||||||
lbryProxy.preference_get(options).then(result => {
|
return lbryProxy.preference_get(options).then(result => {
|
||||||
if (result) {
|
if (result) {
|
||||||
const preference = result[key];
|
const preference = result[key];
|
||||||
return success(preference);
|
return success(preference);
|
||||||
|
|
|
@ -96,7 +96,7 @@ export function doPreferenceGet(key: string, success: Function, fail?: Function)
|
||||||
key,
|
key,
|
||||||
};
|
};
|
||||||
|
|
||||||
Lbry.preference_get(options)
|
return Lbry.preference_get(options)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
if (result) {
|
if (result) {
|
||||||
const preference = result[key];
|
const preference = result[key];
|
||||||
|
|
Loading…
Reference in a new issue