woocommerce-paypal-payments/modules/ppcp-googlepay/resources/js/boot-admin.js

17 lines
450 B
JavaScript
Raw Normal View History

import GooglePayPreviewButtonManager from './Preview/GooglePayPreviewButtonManager';
/**
* Accessor that creates and returns a single PreviewButtonManager instance.
*/
const buttonManager = () => {
2024-07-12 12:58:34 +02:00
if ( ! GooglePayPreviewButtonManager.instance ) {
GooglePayPreviewButtonManager.instance =
new GooglePayPreviewButtonManager();
}
2024-07-12 12:58:34 +02:00
return GooglePayPreviewButtonManager.instance;
};
// Initialize the preview button manager.
buttonManager();