🔥 Remove an unused function argument

This commit is contained in:
Philipp Stracker 2025-03-17 14:57:51 +01:00
parent f5194c0be4
commit 745c1cc88c
No known key found for this signature in database

View file

@ -65,8 +65,7 @@ class Renderer {
this.renderButtons( this.renderButtons(
settings.button.wrapper, settings.button.wrapper,
settings.button.style, settings.button.style,
contextConfig, contextConfig
hasEnabledSeparateGateways
); );
} }
} else { } else {
@ -85,7 +84,6 @@ class Renderer {
settings.button.wrapper, settings.button.wrapper,
style, style,
contextConfig, contextConfig,
hasEnabledSeparateGateways,
fundingSource fundingSource
); );
} }
@ -105,26 +103,15 @@ class Renderer {
data.wrapper, data.wrapper,
data.style, data.style,
contextConfig, contextConfig,
hasEnabledSeparateGateways,
fundingSource fundingSource
); );
} }
} }
renderButtons( renderButtons( wrapper, style, contextConfig, fundingSource = null ) {
wrapper,
style,
contextConfig,
hasEnabledSeparateGateways,
fundingSource = null
) {
if ( if (
! document.querySelector( wrapper ) || ! document.querySelector( wrapper ) ||
this.isAlreadyRendered( this.isAlreadyRendered( wrapper, fundingSource )
wrapper,
fundingSource,
hasEnabledSeparateGateways
)
) { ) {
// Try to render registered buttons again in case they were removed from the DOM by an external source. // Try to render registered buttons again in case they were removed from the DOM by an external source.
widgetBuilder.renderButtons( [ wrapper, fundingSource ] ); widgetBuilder.renderButtons( [ wrapper, fundingSource ] );