File tree Expand file tree Collapse file tree
QuestAppVersionSwitcher/Assets/html/flows Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -631,19 +631,21 @@ <h2>Upload logs</h2>
631631 }
632632 } ) . then ( mods => {
633633 // For each mod's download link, perform a POST request
634- mods . forEach ( async url => {
635- await fetch ( start + "/api/mods/installfromurl" , {
636- method : "POST" ,
637- body : url
638- } )
639- . then ( postRes => {
640- if ( ! postRes . ok ) {
641- console . error ( `Failed to post link: ${ postRes . status } ${ postRes . statusText } ` ) ;
642- } else {
643- console . log ( `Successfully posted link: ${ url } ` ) ;
644- }
645- } )
646- . catch ( error => console . error ( "Error posting link:" , error ) ) ;
634+ mods . forEach ( ( url , index ) => {
635+ setTimeout ( ( ) => {
636+ fetch ( start + "/api/mods/installfromurl" , {
637+ method : "POST" ,
638+ body : url
639+ } )
640+ . then ( postRes => {
641+ if ( ! postRes . ok ) {
642+ console . error ( `Failed to post link: ${ postRes . status } ${ postRes . statusText } ` ) ;
643+ } else {
644+ console . log ( `Successfully posted link: ${ url } ` ) ;
645+ }
646+ } )
647+ . catch ( error => console . error ( "Error posting link:" , error ) ) ;
648+ } , 200 * index ) ;
647649 } ) ;
648650 } ) . then ( ( ) => {
649651 localStorage . openMainDefault = true
You can’t perform that action at this time.
0 commit comments