to fix translate btn design
This commit is contained in:
parent
40a884b4f5
commit
52a8ec8033
|
@ -902,7 +902,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
||||||
//日本語じゃない
|
//日本語じゃない
|
||||||
if (toot.language != lang.language && toot.language) {
|
if (toot.language != lang.language && toot.language) {
|
||||||
var trans = `<li onclick="trans('${toot.language}','${lang.language}', $(this))"
|
var trans = `<li onclick="trans('${toot.language}','${lang.language}', $(this))"
|
||||||
class="waves-effect waves-dark btn-flat actct" style="padding:0">
|
style="padding:0">
|
||||||
<i class="material-icons" aria-hidden="true">g_translate</i>${lang.lang_parse_trans}
|
<i class="material-icons" aria-hidden="true">g_translate</i>${lang.lang_parse_trans}
|
||||||
</li>`
|
</li>`
|
||||||
} else {
|
} else {
|
||||||
|
@ -1549,6 +1549,7 @@ function pollParse(poll, acct_id, emojis) {
|
||||||
var mastodonBaseWs = {}
|
var mastodonBaseWs = {}
|
||||||
var mastodonBaseWsStatus = {}
|
var mastodonBaseWsStatus = {}
|
||||||
function mastodonBaseStreaming(acct_id) {
|
function mastodonBaseStreaming(acct_id) {
|
||||||
|
notfCommon(acct_id, 0, null, 'no')
|
||||||
const domain = localStorage.getItem(`domain_${acct_id}`)
|
const domain = localStorage.getItem(`domain_${acct_id}`)
|
||||||
if(mastodonBaseWsStatus[domain]) return
|
if(mastodonBaseWsStatus[domain]) return
|
||||||
mastodonBaseWsStatus[domain] = 'undetected'
|
mastodonBaseWsStatus[domain] = 'undetected'
|
||||||
|
@ -1603,7 +1604,7 @@ function mastodonBaseStreaming(acct_id) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mastodonBaseWs[domain].onerror = function (error) {
|
mastodonBaseWs[domain].onerror = function (error) {
|
||||||
notf(acct_id, 0) //fallback
|
notfCommon(acct_id, 0, null, 'only') //fallback
|
||||||
console.error("Error closing " + domain)
|
console.error("Error closing " + domain)
|
||||||
console.error(error)
|
console.error(error)
|
||||||
if (mastodonBaseWsStatus[domain] == 'available') location.reload()
|
if (mastodonBaseWsStatus[domain] == 'available') location.reload()
|
||||||
|
@ -1615,7 +1616,7 @@ function mastodonBaseStreaming(acct_id) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
mastodonBaseWs[domain].onclose = function () {
|
mastodonBaseWs[domain].onclose = function () {
|
||||||
notf(acct_id, 0) //fallback
|
notfCommon(acct_id, 0, null, 'only') //fallback
|
||||||
console.warn("Closing " + domain)
|
console.warn("Closing " + domain)
|
||||||
if (mastodonBaseWsStatus[domain] == 'available') location.reload()
|
if (mastodonBaseWsStatus[domain] == 'available') location.reload()
|
||||||
mastodonBaseWs[domain] = false
|
mastodonBaseWs[domain] = false
|
||||||
|
|
Loading…
Reference in New Issue
Block a user