From d19be3f2cba1e4232d7b41d3a218836ad825fcef Mon Sep 17 00:00:00 2001 From: Cutls Date: Mon, 30 Sep 2019 02:23:10 +0900 Subject: [PATCH] Fix: resolving error --- app/js/userdata/showOnTL.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/userdata/showOnTL.js b/app/js/userdata/showOnTL.js index 60cf6700..0746a993 100644 --- a/app/js/userdata/showOnTL.js +++ b/app/js/userdata/showOnTL.js @@ -36,11 +36,11 @@ function udgEx(user, acct_id) { todo(error); console.error(error); }).then(function (json) { - if (json.accounts) { + if (json.accounts[0]) { var id = json.accounts[0].id; udg(id, acct_id); } else { - postMessage(["openUrl", url], "*") + postMessage(["openUrl", user], "*") } }); return true;