Merge pull request #660 from Kamikaze94/bugfix/strip-sfp-icon

WebUI: Fix port strip icon for sfp ports
This commit is contained in:
feelfree69 authored and GitHub committed 2026-10-27 18:11:25 +01:00
commit 62abd08aa2
1 file changed
+2 -1
+2 -1
View File
@@ -954,6 +954,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;
@@ -975,7 +976,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();