From af386812932567c58f8e4b08a0c35976c208fc74 Mon Sep 17 00:00:00 2001 From: cutls Date: Sat, 16 Nov 2019 23:04:31 +0900 Subject: [PATCH] When IntegTL str closed, icons become red --- app/js/tl/mix.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/js/tl/mix.js b/app/js/tl/mix.js index 649f775a..224697e9 100644 --- a/app/js/tl/mix.js +++ b/app/js/tl/mix.js @@ -87,8 +87,8 @@ function mixre(acct_id, tlid, TLtype, mute, voice, mode) { wsLocal[wslid].onerror = function(error) { console.error('WebSocketLocal Error') console.error(error) + $('#notice_icon_' + tlid).addClass('red-text') if (mode == 'error') { - $('#notice_icon_' + tlid).addClass('red-text') todo('WebSocket Error ' + error) } else { 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() { console.warn('WebSocketLocal Closing:' + tlid) + $('#notice_icon_' + tlid).addClass('red-text') if (mode == 'error') { - $('#notice_icon_' + tlid).addClass('red-text') todo('WebSocket Closed') } else { 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) { console.error(['WebSocketHome Error', error]) + $('#notice_icon_' + tlid).addClass('red-text') if (mode == 'error') { - $('#notice_icon_' + tlid).addClass('red-text') todo('WebSocket Error ' + error) } else { 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() { console.warn('WebSocketHome Closing:' + tlid) + $('#notice_icon_' + tlid).addClass('red-text') if (mode == 'error') { - $('#notice_icon_' + tlid).addClass('red-text') todo('WebSocket Closed') } else { var errorct = localStorage.getItem('wserror_' + tlid) * 1 + 1