Skip to content

Commit

Permalink
Register polyfills before register assets for amp-validation-counts
Browse files Browse the repository at this point in the history
… assets
  • Loading branch information
pierlon committed Apr 27, 2021
1 parent a40cae1 commit e35a71b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Admin/ValidationCounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public function register() {
* Enqueue admin assets.
*/
public function enqueue_scripts() {
/** This action is documented in includes/class-amp-theme-support.php */
do_action( 'amp_register_polyfills' );

$asset_file = AMP__DIR__ . '/assets/js/' . self::ASSETS_HANDLE . '.asset.php';
$asset = require $asset_file;
$dependencies = $asset['dependencies'];
Expand Down

0 comments on commit e35a71b

Please sign in to comment.