mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
Merge pull request #3174 from woocommerce/PCP-4275-error-during-initialization-type-error-window-this-namespace-applepay-is-not-a-function
Error during initialization: TypeError: window[this.namespace].Applepay is not a function (4275)
This commit is contained in:
commit
8093626a9c
1 changed files with 4 additions and 0 deletions
|
@ -1018,6 +1018,10 @@ class ApplePayButton implements ButtonInterface {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function enqueue(): void {
|
public function enqueue(): void {
|
||||||
|
if ( ! $this->is_enabled() ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
wp_register_script(
|
wp_register_script(
|
||||||
'wc-ppcp-applepay',
|
'wc-ppcp-applepay',
|
||||||
untrailingslashit( $this->module_url ) . '/assets/js/boot.js',
|
untrailingslashit( $this->module_url ) . '/assets/js/boot.js',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue