Skip to content

Commit

Permalink
Remove the duplicate of cash.min.js and fix js libs exclusion (cypht-…
Browse files Browse the repository at this point in the history
  • Loading branch information
mercihabam authored Oct 29, 2024
1 parent cc3eb91 commit cd8cc15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/js_libs.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ function get_js_libs($exclude_deps = []) {
function get_js_libs_content($exclude_deps = []) {
$js_lib = '';

foreach (JS_LIBS as $dep) {
if (!in_array($dep, $exclude_deps)) {
foreach (JS_LIBS as $key => $dep) {
if (!in_array($key, $exclude_deps)) {
$js_lib .= file_get_contents(APP_PATH.$dep);
}
}
Expand Down
1 change: 0 additions & 1 deletion scripts/config_gen.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ function combine_includes($js, $js_compress, $css, $css_compress, $settings) {
if ($js) {
$mods = get_modules($settings);
$js_lib = get_js_libs_content(explode(',', $settings['js_exclude_deps']));
$js_lib .= file_get_contents("third_party/cash.min.js");
if (in_array('desktop_notifications', $mods, true)) {
$js_lib .= file_get_contents("third_party/push.min.js");
}
Expand Down

0 comments on commit cd8cc15

Please sign in to comment.