When IntegTL str closed, icons become red
This commit is contained in:
parent
022565e176
commit
af38681293
|
@ -87,8 +87,8 @@ function mixre(acct_id, tlid, TLtype, mute, voice, mode) {
|
||||||
wsLocal[wslid].onerror = function(error) {
|
wsLocal[wslid].onerror = function(error) {
|
||||||
console.error('WebSocketLocal Error')
|
console.error('WebSocketLocal Error')
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
$('#notice_icon_' + tlid).addClass('red-text')
|
||||||
if (mode == 'error') {
|
if (mode == 'error') {
|
||||||
$('#notice_icon_' + tlid).addClass('red-text')
|
|
||||||
todo('WebSocket Error ' + error)
|
todo('WebSocket Error ' + error)
|
||||||
} else {
|
} else {
|
||||||
var errorct = localStorage.getItem('wserror_' + tlid) * 1 + 1
|
var errorct = localStorage.getItem('wserror_' + tlid) * 1 + 1
|
||||||
|
@ -100,8 +100,8 @@ function mixre(acct_id, tlid, TLtype, mute, voice, mode) {
|
||||||
}
|
}
|
||||||
wsLocal[wslid].onclose = function() {
|
wsLocal[wslid].onclose = function() {
|
||||||
console.warn('WebSocketLocal Closing:' + tlid)
|
console.warn('WebSocketLocal Closing:' + tlid)
|
||||||
|
$('#notice_icon_' + tlid).addClass('red-text')
|
||||||
if (mode == 'error') {
|
if (mode == 'error') {
|
||||||
$('#notice_icon_' + tlid).addClass('red-text')
|
|
||||||
todo('WebSocket Closed')
|
todo('WebSocket Closed')
|
||||||
} else {
|
} else {
|
||||||
var errorct = localStorage.getItem('wserror_' + tlid) * 1 + 1
|
var errorct = localStorage.getItem('wserror_' + tlid) * 1 + 1
|
||||||
|
@ -113,8 +113,8 @@ function mixre(acct_id, tlid, TLtype, mute, voice, mode) {
|
||||||
}
|
}
|
||||||
wsHome[wshid].onerror = function(error) {
|
wsHome[wshid].onerror = function(error) {
|
||||||
console.error(['WebSocketHome Error', error])
|
console.error(['WebSocketHome Error', error])
|
||||||
|
$('#notice_icon_' + tlid).addClass('red-text')
|
||||||
if (mode == 'error') {
|
if (mode == 'error') {
|
||||||
$('#notice_icon_' + tlid).addClass('red-text')
|
|
||||||
todo('WebSocket Error ' + error)
|
todo('WebSocket Error ' + error)
|
||||||
} else {
|
} else {
|
||||||
var errorct = localStorage.getItem('wserror_' + tlid) * 1 + 1
|
var errorct = localStorage.getItem('wserror_' + tlid) * 1 + 1
|
||||||
|
@ -126,8 +126,8 @@ function mixre(acct_id, tlid, TLtype, mute, voice, mode) {
|
||||||
}
|
}
|
||||||
wsHome[wshid].onclose = function() {
|
wsHome[wshid].onclose = function() {
|
||||||
console.warn('WebSocketHome Closing:' + tlid)
|
console.warn('WebSocketHome Closing:' + tlid)
|
||||||
|
$('#notice_icon_' + tlid).addClass('red-text')
|
||||||
if (mode == 'error') {
|
if (mode == 'error') {
|
||||||
$('#notice_icon_' + tlid).addClass('red-text')
|
|
||||||
todo('WebSocket Closed')
|
todo('WebSocket Closed')
|
||||||
} else {
|
} else {
|
||||||
var errorct = localStorage.getItem('wserror_' + tlid) * 1 + 1
|
var errorct = localStorage.getItem('wserror_' + tlid) * 1 + 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user