Commit 418ae030 authored by Andres Menco Haeckermann's avatar Andres Menco Haeckermann Committed by Vladimir Roudakov
Browse files

Issue #3266598 by andresgmh, amin.ankit, VladimirAus: Frontend library is not being attached

parent 3e04670b
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
addtoany:
addtoany.front:
  version: VERSION
  js:
    https://static.addtoany.com/menu/page.js: { attributes: { async: true }, type: external, minified: true }
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ function addtoany_page_attachments(&$page) {
  // Enable the libraries if the current route is not an admin page.
  $route = \Drupal::routeMatch()->getRouteObject();
  if (!\Drupal::service('router.admin_context')->isAdminRoute($route)) {
    $page['#attached']['library'][] = 'addtoany/addtoany';
    $page['#attached']['library'][] = 'addtoany/addtoany.front';
  }
}