mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Check if language selector exists
This commit is contained in:
parent
7b02136f51
commit
ad7de79b38
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ document.addEventListener(
|
|||
settings['disable-funding'] = disabledSources;
|
||||
}
|
||||
|
||||
const smartButtonLocale = document.getElementById('ppcp-smart_button_language')
|
||||
const smartButtonLocale = document.getElementById('ppcp-smart_button_language');
|
||||
if (smartButtonLocale?.length > 0 && smartButtonLocale?.value !== '') {
|
||||
settings['locale'] = smartButtonLocale.value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue