diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 3ffbfbd..ea0bdd0 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1846,8 +1846,5 @@ function drupal_common_theme() { * @see progress.js */ function template_preprocess_progress_bar(&$variables) { - $variables['#attached']['js'][] = array( - 'type' => 'setting', - 'data' => array('progressBarAnimate' => $variables['animate']), - ); + $variables['#attached']['drupalSettings']['progressBarAnimate'] = $variables['animate']; }