Fix: resolving error
This commit is contained in:
parent
a9f55aa64f
commit
d19be3f2cb
|
@ -36,11 +36,11 @@ function udgEx(user, acct_id) {
|
||||||
todo(error);
|
todo(error);
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}).then(function (json) {
|
}).then(function (json) {
|
||||||
if (json.accounts) {
|
if (json.accounts[0]) {
|
||||||
var id = json.accounts[0].id;
|
var id = json.accounts[0].id;
|
||||||
udg(id, acct_id);
|
udg(id, acct_id);
|
||||||
} else {
|
} else {
|
||||||
postMessage(["openUrl", url], "*")
|
postMessage(["openUrl", user], "*")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user