File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -319,8 +319,6 @@ window.Spicetify = {
319
319
Spicetify . Platform [ key ] = _platform [ key ] ;
320
320
}
321
321
}
322
-
323
- if ( ! Spicetify . Platform . Registry ) Spicetify . Events . platformLoaded . fire ( ) ;
324
322
} ) ( ) ;
325
323
326
324
( function addMissingPlatformAPIs ( ) {
@@ -344,8 +342,6 @@ window.Spicetify = {
344
342
Spicetify . Platform [ symbolName ] = resolvedAPI ;
345
343
console . debug ( `[spicetifyWrapper] Resolved PlatformAPI from Registry: ${ symbolName } ` ) ;
346
344
}
347
-
348
- if ( Spicetify . Events . platformLoaded . callbacks . length ) Spicetify . Events . platformLoaded . fire ( ) ;
349
345
} ) ( ) ;
350
346
351
347
( async function addProxyCosmos ( ) {
@@ -491,6 +487,9 @@ window.Spicetify = {
491
487
console . log ( "[spicetifyWrapper] All required webpack modules loaded" ) ;
492
488
chunks = Object . entries ( require . m ) ;
493
489
cache = Object . keys ( require . m ) . map ( ( id ) => require ( id ) ) ;
490
+
491
+ // Fire platformLoaded event there because of the sleep functions before
492
+ Spicetify . Events . platformLoaded . fire ( ) ;
494
493
} ) ;
495
494
496
495
const modules = cache
You can’t perform that action at this time.
0 commit comments