File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 8686 $ ( '#download-button' ) . html ( '<i class="glyphicon glyphicon-send"></i> Sending Request...' ) . addClass ( 'disabled' ) ;
8787
8888 var form_data = get_form_data ( ) ;
89+ const removedModules = form_data . removedModules ;
90+ delete form_data . removedModules ;
8991 $ . ajax ( {
9092 type : "POST" ,
9193 url : "https://js-download.prebid.org/download" ,
112114 triggerDownload ( jsBlob , filename ) ;
113115 triggerDownload ( new Blob ( [ configData ] , { type : "application/json" } ) , "prebid-config.json" ) ;
114116
115- if ( form_data [ " removedModules" ] . length > 0 ) {
117+ if ( removedModules . length > 0 ) {
116118 alert (
117119 "The following modules were removed from your download because they aren't present in Prebid.js version " +
118120 form_data [ "version" ] +
119121 ": " +
120- JSON . stringify ( form_data [ " removedModules" ] )
122+ JSON . stringify ( removedModules )
121123 ) ;
122124 }
123125 } )
179181 } ) ;
180182
181183 return {
182- modules : renameModules ( version , modules ) ,
184+ modules : renameModules ( version , modules ) . filter ( mod => ! removedModules . includes ( mod ) ) ,
183185 version,
184186 removedModules,
185187 } ;
You can’t perform that action at this time.
0 commit comments