From 990c2f796e6d40c8b2261f8ded83fda031dd47ea Mon Sep 17 00:00:00 2001 From: Cutls Date: Mon, 20 May 2019 22:34:58 +0900 Subject: [PATCH] Fix acct-select-box --- app/js/login/login.js | 8 ++++++-- app/js/tl/parse.js | 2 +- app/js/ui/layout.js | 4 +++- app/view/make/index.sample.html | 11 +++-------- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/app/js/login/login.js b/app/js/login/login.js index e22c02e2..8379e79c 100644 --- a/app/js/login/login.js +++ b/app/js/login/login.js @@ -422,9 +422,13 @@ function multiSelector() { var last = localStorage.getItem("main"); } else if (localStorage.getItem("last-use")) { var last = localStorage.getItem("last-use"); + if (last == "webview" || last == "noauth") { + last = "0"; + } } else { - var last = 0; + var last = "0"; } + last = last + ""; var sel; if (obj.length < 1) { $("#src-acct-sel").html(''); @@ -433,7 +437,7 @@ function multiSelector() { Object.keys(obj).forEach(function (key) { var acct = obj[key]; var list = key * 1 + 1; - if (key == last) { + if (key+"" === last) { sel = "selected"; var domain = acct.domain; localStorage.setItem("domain_" + key, domain); diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js index 33ec62de..1800c68d 100644 --- a/app/js/tl/parse.js +++ b/app/js/tl/parse.js @@ -603,7 +603,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { } } else { if (media.type == "unknown") { - viewer = viewer + '[' + lang.lang_parse_unknown + '] ' + viewer = viewer + '[' + lang.lang_parse_unknown + '] ' } else { viewer = viewer + 'HP
GitHub

-