Loading addtoany.libraries.yml +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 } Loading addtoany.module +1 −1 Original line number Diff line number Diff line Loading @@ -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'; } } Loading Loading
addtoany.libraries.yml +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 } Loading
addtoany.module +1 −1 Original line number Diff line number Diff line Loading @@ -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'; } } Loading