Rename the new script loading script

This commit is contained in:
Daniel Dudzic 2024-10-08 00:41:30 +02:00
parent eba3d12e4e
commit e76c8b257b
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
9 changed files with 153 additions and 95 deletions

View file

@ -1,5 +1,5 @@
import AxoManager from './AxoManager';
import UnifiedScriptLoader from '../../../ppcp-button/resources/js/modules/Helper/UnifiedScriptLoader';
import { loadPayPalScript } from '../../../ppcp-button/resources/js/modules/Helper/PayPalScriptLoading';
import { log } from './Helper/Debug';
( function ( { axoConfig, ppcpConfig, jQuery } ) {
@ -15,7 +15,7 @@ import { log } from './Helper/Debug';
}
// Load PayPal
UnifiedScriptLoader.loadPayPalScript( namespace, ppcpConfig )
loadPayPalScript( namespace, ppcpConfig )
.then( () => {
bootstrap();
} )