mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
WebUI: Fix port strip icon for sfp ports
This commit is contained in:
1 parent
6d1380fb36
commit
723d16b4cb
1 file changed
+2
-1
+2
-1
@@ -936,6 +936,7 @@ function byPort(a){return a.sort(function(x,y){return x.portNum-y.portNum})}
|
||||
function pollStatus(){
|
||||
return getJSON("/status.json").then(function(s){
|
||||
byPort(s);
|
||||
S.ports=s;
|
||||
var now=Date.now();
|
||||
if(!S.n){
|
||||
S.n=s.length;
|
||||
@@ -957,7 +958,7 @@ function pollStatus(){
|
||||
};
|
||||
});
|
||||
}
|
||||
S.prev=s;S.prevT=now;S.ports=s;
|
||||
S.prev=s;S.prevT=now;
|
||||
updateStrip();
|
||||
var hk=tabHooks[curTab];
|
||||
if(hk&&hk.status)hk.status();
|
||||
|
||||
Reference in new issue
Block a user