mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Add GooglePay checks
This commit is contained in:
parent
e07f43e982
commit
eff390f564
2 changed files with 6 additions and 1 deletions
|
@ -24,6 +24,11 @@ import GooglepayManager from "./GooglepayManager";
|
|||
return;
|
||||
}
|
||||
|
||||
// If button wrapper is not present then there is no need to load the scripts.
|
||||
if (!jQuery(buttonConfig.button.wrapper).length) {
|
||||
return;
|
||||
}
|
||||
|
||||
let bootstrapped = false;
|
||||
let paypalLoaded = false;
|
||||
let googlePayLoaded = false;
|
||||
|
|
|
@ -208,7 +208,7 @@ class GooglepayButton implements ButtonInterface {
|
|||
* Whether any of the scripts should be loaded.
|
||||
*/
|
||||
public function should_load_script(): bool {
|
||||
return true;
|
||||
return true; // TODO.
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue