Skip to content

Commit

Permalink
Removed enqueue of fictional widget.js and reuse settings admin handle
Browse files Browse the repository at this point in the history
  • Loading branch information
bainternet committed Jan 19, 2025
1 parent 1787eea commit 8995ffc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions modules/widget/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,8 @@ public function enqueue_accessibility_widget_admin ( $hook ) : void {
return;
}

wp_enqueue_script(
'ea11y-widget',
EA11Y_ASSETS_URL . '/js/widget.js',
[],
EA11Y_VERSION,
true
);

wp_localize_script(
'ea11y-widget',
'admin', // use admin settings script
'ea11yWidget',
[
'iconSettings' => $this->get_widget_icon_settings(),
Expand Down

0 comments on commit 8995ffc

Please sign in to comment.