@@ -499,7 +499,7 @@ class DeviceView extends View {
499499 processesButton . onclick = ( ) => {
500500 const wmi = new Wmi ( { target :host , query :"SELECT CreationDate, ExecutablePath, Name, ProcessId \nFROM Win32_Process" , hideInput :true } ) ;
501501 wmi . SetIcon ( "mono/console.svg" ) ;
502- if ( ! this . link . name || this . link . name . v . length == 0 ) {
502+ if ( ! this . link . name || this . link . name . v . length === 0 ) {
503503 wmi . SetTitle ( "[untitled] - Processes" ) ;
504504 }
505505 else {
@@ -1018,7 +1018,7 @@ class DeviceView extends View {
10181018 case "Tagged VLAN" :
10191019 this . switchMode = 2 ;
10201020 list . forEach ( o => {
1021- if ( o . tagged == "" ) {
1021+ if ( o . tagged === "" ) {
10221022 o . iconElement . style . background = "var(--clr-dark)" ;
10231023 o . iconElement . setAttribute ( "c" , "var(--clr-dark)" ) ;
10241024 return ;
@@ -1120,7 +1120,7 @@ class DeviceView extends View {
11201120 list . forEach ( o => {
11211121 o . iconElement . setAttribute ( "c" , "#fff" ) ;
11221122
1123- if ( o . tagged == "" ) {
1123+ if ( o . tagged === "" ) {
11241124 o . iconElement . style . backgroundColor = "var(--clr-dark)" ;
11251125 return ;
11261126 }
@@ -1247,7 +1247,7 @@ class DeviceView extends View {
12471247 case "Untagged VLAN" : {
12481248 const values = Object . keys ( hashmap ) . map ( o => parseInt ( o ) ) . sort ( ( a , b ) => a - b ) ;
12491249 for ( let i = 0 ; i < values . length ; i ++ ) {
1250- if ( values [ i ] == "" ) continue ;
1250+ if ( values [ i ] === "" ) continue ;
12511251 if ( values [ i ] in hashmap ) {
12521252 legend . appendChild ( this . CreateLegendElement ( this . GetVlanColor ( values [ i ] ) , `VLAN ${ values [ i ] } ` ) ) ;
12531253 }
@@ -1329,15 +1329,15 @@ class DeviceView extends View {
13291329
13301330 const values = Object . keys ( hashmap ) . sort ( ( a , b ) => a - b ) ;
13311331 for ( let i = 0 ; i < values . length ; i ++ ) {
1332- if ( values [ i ] == "" ) continue ;
1332+ if ( values [ i ] === "" ) continue ;
13331333 if ( values [ i ] in hashmap ) {
13341334 const element = this . CreateLegendElement ( this . GetVlanColor ( values [ i ] ) , `VLAN ${ values [ i ] } ` ) ;
13351335 element . className = "view-interface-legend-entry" ;
13361336 legend . appendChild ( element ) ;
13371337
13381338 element . onmouseenter = ( ) => {
13391339 for ( let j = 0 ; j < frameList . length ; j ++ ) {
1340- if ( frameList [ j ] . untagged == values [ i ] ) {
1340+ if ( frameList [ j ] . untagged === values [ i ] ) {
13411341 frameList [ j ] . iconElement . parentElement . style . animation = "port-pop 1.5s ease-in-out infinite" ;
13421342 }
13431343 }
@@ -1369,7 +1369,7 @@ class DeviceView extends View {
13691369
13701370 const values = Object . keys ( hashmap ) . sort ( ( a , b ) => a - b ) ;
13711371 for ( let i = 0 ; i < values . length ; i ++ ) {
1372- if ( values [ i ] == "" ) continue ;
1372+ if ( values [ i ] === "" ) continue ;
13731373 if ( values [ i ] in hashmap ) {
13741374 const element = this . CreateLegendElement ( this . GetVlanColor ( values [ i ] ) , `VLAN ${ values [ i ] } ` ) ;
13751375 element . className = "view-interface-legend-entry" ;
@@ -2597,7 +2597,7 @@ class DeviceView extends View {
25972597 else {
25982598 let p = 0 ;
25992599
2600- /*if (j == 0) { //verb
2600+ /*if (j === 0) { //verb
26012601 while (line[0].substring(0, p).trim().length === 0 && p < line[0].length) {p++; }
26022602 p = line[0].indexOf(" ", p);
26032603
@@ -2616,12 +2616,12 @@ class DeviceView extends View {
26162616
26172617 if ( p != sp ) {
26182618 const spanA = document . createElement ( "span" ) ;
2619- spanA . textContent = j == 0 ? line [ j ] . substring ( p , sp ) : line [ j ] . substring ( p , sp ) ;
2619+ spanA . textContent = j === 0 ? line [ j ] . substring ( p , sp ) : line [ j ] . substring ( p , sp ) ;
26202620 lineElement . appendChild ( spanA ) ;
26212621 }
26222622
26232623 const spanB = document . createElement ( "span" ) ;
2624- spanB . textContent = j == 0 ? line [ j ] . substring ( sp , ep + 1 ) : line [ j ] . substring ( sp , ep + 1 ) ;
2624+ spanB . textContent = j === 0 ? line [ j ] . substring ( sp , ep + 1 ) : line [ j ] . substring ( sp , ep + 1 ) ;
26252625 spanB . style . color = "#5BE" ;
26262626 lineElement . appendChild ( spanB ) ;
26272627
@@ -2630,7 +2630,7 @@ class DeviceView extends View {
26302630
26312631 if ( p < line [ j ] . length ) {
26322632 const spanC = document . createElement ( "span" ) ;
2633- spanC . textContent = j == 0 ? line [ j ] . substring ( p ) : line [ j ] . substring ( p ) ;
2633+ spanC . textContent = j === 0 ? line [ j ] . substring ( p ) : line [ j ] . substring ( p ) ;
26342634 lineElement . appendChild ( spanC ) ;
26352635 }
26362636 }
@@ -3745,7 +3745,7 @@ class DeviceView extends View {
37453745 if ( ! vlan || vlan === "" ) return null ;
37463746
37473747 for ( let i = 0 ; i < KEEP . zones . length ; i ++ ) {
3748- if ( KEEP . zones [ i ] . vlan == vlan ) {
3748+ if ( KEEP . zones [ i ] . vlan === vlan ) {
37493749 return KEEP . zones [ i ] . color ;
37503750 }
37513751 }
0 commit comments