File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1-
21let appJSON = [ ] ; // List of apps and info from apps.json
32let appSortInfo = { } ; // list of data to sort by, from appdates.csv { created, modified }
43let appCounts = { } ;
@@ -42,6 +41,7 @@ let device = {
4241 }
4342};*/
4443let LANGUAGE = undefined ;
44+ const favAnimMS = 500 ;
4545
4646/** Ensure we run transfers one after the other rather that potentially having them overlap if the user clicks around
4747https://github.com/espruino/EspruinoAppLoaderCore/issues/67 */
@@ -871,11 +871,10 @@ function refreshLibrary(options) {
871871 let txt = ( cnt > 999 ) ? Math . round ( cnt / 100 ) / 10 + "k" : cnt ;
872872 let countEl = button . querySelector ( '.fav-count' ) ;
873873 if ( countEl ) countEl . textContent = String ( txt ) ;
874- const ANIM_MS = 500 ;
875874 // ensure animation class is removed after the duration so it can be re-triggered
876875 setTimeout ( ( ) => {
877876 try { if ( icon ) icon . classList . remove ( "favoriteAnim" ) ; } catch ( e ) { console . error ( e ) ; }
878- } , ANIM_MS ) ;
877+ } , favAnimMS ) ;
879878 }
880879 } ) ;
881880 } ) ;
@@ -1163,10 +1162,9 @@ function refreshMyApps() {
11631162 let txt = ( cnt > 999 ) ? Math . round ( cnt / 100 ) / 10 + "k" : cnt ;
11641163 let countEl = button . querySelector ( '.fav-count' ) ;
11651164 if ( countEl ) countEl . textContent = String ( txt ) ;
1166- const ANIM_MS = 500 ;
11671165 setTimeout ( ( ) => {
11681166 try { if ( icon ) icon . classList . remove ( "favoriteAnim" ) ; } catch ( e ) { }
1169- } , ANIM_MS ) ;
1167+ } , favAnimMS ) ;
11701168 }
11711169 } ) ;
11721170 } ) ;
You can’t perform that action at this time.
0 commit comments