Fix: resolving error

This commit is contained in:
Cutls 2019-09-30 02:23:10 +09:00
parent a9f55aa64f
commit d19be3f2cb

View File

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