Skip to content

Commit

Permalink
Don't require jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBernskiold committed Jan 15, 2022
1 parent 20248c3 commit adeb4fe
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ilmenite-cookie-consent.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,7 @@ public function scripts() {
return;
}

/**
* We need jQuery for this plugin.
*/
wp_enqueue_script( 'jquery' );

wp_register_script( 'ilmenite-cookie-consent', $this->plugin_url . '/assets/scripts/dist/cookie-banner.js', [ 'jquery', 'ilcc-vendor' ], $this->version, true );
wp_register_script( 'ilmenite-cookie-consent', $this->plugin_url . '/assets/scripts/dist/cookie-banner.js', [ 'ilcc-vendor' ], $this->version, true );

wp_register_script( 'ilcc-vendor', $this->plugin_url . '/assets/scripts/dist/cookie-banner-vendor.js', [], $this->version, false );

Expand Down

0 comments on commit adeb4fe

Please sign in to comment.