Skip to content

Commit bbf7ade

Browse files
Merge pull request #71 from robertgarrigos/fixes/issue-70
Update template.php
2 parents d2381c3 + 8dc1d2c commit bbf7ade

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

template.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,11 @@ function bootstrap5_lite_js_alter(&$js) {
8787
if ($cdn_version) {
8888
if ($cdn_version == 'module') {
8989
// Use bundled library
90-
$js_src = '/' . $theme_path . '/bootstrap/js/bootstrap.min.js';
90+
$js_src = $theme_path . '/bootstrap/js/bootstrap.min.js';
9191
$js[$js_src] = array(
9292
'data' => $js_src,
9393
'type' => 'file',
9494
'every_page' => TRUE,
95-
'every_page_weight' => -1,
96-
'weight' => -100,
9795
) + backdrop_js_defaults();
9896
}
9997
else {
@@ -103,8 +101,6 @@ function bootstrap5_lite_js_alter(&$js) {
103101
'data' => $js_src,
104102
'type' => 'external',
105103
'every_page' => TRUE,
106-
'every_page_weight' => -1,
107-
'weight' => -100,
108104
) + backdrop_js_defaults();
109105
}
110106
}

0 commit comments

Comments
 (0)