@@ -106,7 +106,7 @@ function pinContains(i, p) {
106106 if ( p == "" ) {
107107 return false
108108 }
109- for ( var x = 0 ; x < p . length ; x ++ ) {
109+ for ( var x = 0 ; x < p . length ; x += 1 ) {
110110 if ( p [ x ] === i ) {
111111 return true
112112 }
@@ -206,8 +206,12 @@ fetch(path)
206206 } )
207207 . then ( ( appsList ) => {
208208 appsList . sort ( ( a , b ) => {
209- if ( a . name . startsWith ( "[Custom]" ) ) return - 1
210- if ( b . name . startsWith ( "[Custom]" ) ) return 1
209+ if ( a . name . startsWith ( "[Custom]" ) ) {
210+ return - 1
211+ }
212+ if ( b . name . startsWith ( "[Custom]" ) ) {
213+ return 1
214+ }
211215 return a . name . localeCompare ( b . name )
212216 } )
213217 const nonPinnedApps = document . querySelector ( ".container-apps" )
@@ -310,7 +314,7 @@ fetch(path)
310314 } else {
311315 nonPinnedApps . appendChild ( columnDiv )
312316 }
313- appInd ++
317+ appInd += 1
314318 } )
315319
316320 const appsContainer = document . getElementById ( "apps-container" )
@@ -325,7 +329,7 @@ function show_category() {
325329 var selectedCategories = Array . from ( document . querySelectorAll ( "#category option:checked" ) ) . map ( ( option ) => option . value )
326330 var games = document . getElementsByClassName ( "column" )
327331
328- for ( var i = 0 ; i < games . length ; i ++ ) {
332+ for ( var i = 0 ; i < games . length ; i += 1 ) {
329333 var game = games [ i ]
330334 var categories = game . getAttribute ( "data-category" ) . split ( " " )
331335
@@ -342,7 +346,7 @@ function search_bar() {
342346 var filter = input . value . toLowerCase ( )
343347 var games = document . getElementsByClassName ( "column" )
344348
345- for ( var i = 0 ; i < games . length ; i ++ ) {
349+ for ( var i = 0 ; i < games . length ; i += 1 ) {
346350 var game = games [ i ]
347351 var name = game . getElementsByTagName ( "p" ) [ 0 ] . textContent . toLowerCase ( )
348352
0 commit comments