File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 use_http2 : true ,
2121 DEBUG : false ,
2222
23+ WHITELIST_AUTO_LOAD : true , // Whitelist is always loaded by lib init. Otherwise use `initializeWhitelistLoader();`.
2324 WHITELIST_URL : 'https://iframely.com/qa/domains.json' ,
2425 WHITELIST_URL_RELOAD_PERIOD : 60 * 60 * 1000 , // will reload WL every hour, if no local files are found in /whitelist folder
2526
440441 config . HTTP2_RETRY_CODES [ item ] = 1 ;
441442 } ) ;
442443
443- export default config ;
444+ export default config ;
Original file line number Diff line number Diff line change 392392 }
393393 }
394394
395- export function initializeWhitelistLoader ( ) {
395+ function privateInitializeWhitelistLoader ( ) {
396396 startScanWhitelist ( ) ;
397397 loadWhitelistUrl ( ) ;
398398 }
399+
400+ export function initializeWhitelistLoader ( ) {
401+ if ( ! CONFIG . WHITELIST_AUTO_LOAD ) {
402+ privateInitializeWhitelistLoader ( ) ;
403+ }
404+ }
405+
406+ if ( CONFIG . WHITELIST_AUTO_LOAD ) {
407+ privateInitializeWhitelistLoader ( ) ;
408+ }
You can’t perform that action at this time.
0 commit comments