Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetso committed Mar 28, 2024
1 parent 8db0eab commit 5be53f1
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions src/php/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,40 +589,6 @@ public function print_footer_scripts()

}


function module_type_scripts($tag, $handle)
{
$tyype = wp_scripts()->get_data($handle, 'type');

if ($tyype) {
$tag = str_replace('src', 'type="' . esc_attr($tyype) . '" src', $tag);
}

return $tag;
}

// public function header_scripts()
// {
//
// wp_register_script(self::HANDLE, 'https://js.prosopo.io/js/procaptcha.bundle.js', [], time(), ['async', false]);
// wp_enqueue_script(self::HANDLE);
// wp_scripts()->add_data(self::HANDLE, 'type', 'module');
//
//
// }

public function admin_header_script()
{

wp_enqueue_script(
'additonal-custom-js',
PROCAPTCHA_URL . "/assets/js/apps/procaptcha.js",
[],
time(),
true
);
}

/**
* Declare compatibility with WC features.
*
Expand Down

0 comments on commit 5be53f1

Please sign in to comment.