return preference get promise

This commit is contained in:
jessop 2020-08-27 14:51:47 -04:00 committed by Sean Yesmunt
parent 316dfcf06a
commit 3df916548f
2 changed files with 2 additions and 2 deletions

2
dist/bundle.es.js vendored
View file

@ -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);

View file

@ -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];