Index: openacs-4/packages/bootstrap-icons/tcl/resource-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bootstrap-icons/tcl/resource-init.tcl,v diff -u -r1.1.2.4 -r1.1.2.5 --- openacs-4/packages/bootstrap-icons/tcl/resource-init.tcl 11 Oct 2023 13:06:16 -0000 1.1.2.4 +++ openacs-4/packages/bootstrap-icons/tcl/resource-init.tcl 30 Nov 2023 10:40:13 -0000 1.1.2.5 @@ -4,32 +4,37 @@ set resource_info [::bootstrap_icons::resource_info] +# +# We go for the minified version. +# +set fn bootstrap-icons.min.css + if {[dict exists $resource_info cdnHost] && [dict get $resource_info cdnHost] ne ""} { # - # The .min.css is just on the CDN - # - set fn bootstrap-icons.min.css - - # # Add global CSP rules. # lappend ::security::csp::default_directives \ style-src [dict get $resource_info cdnHost] \ font-src [dict get $resource_info cdnHost] } else { - set fn bootstrap-icons.css # # Unfortunately, the structure of the distributed .zip file is # version dependent: Versions greater or equal to 1.10.4 and less # than 1.11.0 require a "font" in the path. # if {[apm_version_names_compare $::bootstrap_icons::version 1.10.4] >= 0 - && [apm_version_names_compare $::bootstrap_icons::version 1.11.0 ] < 0 } { + && [apm_version_names_compare $::bootstrap_icons::version 1.11.1 ] < 0 } { # # Adding "font" to the path. # set fn font/$fn + } else { + # + # Old zip distributions may not carry the minified version. We + # settle for the unminified one in this case. + # + set fn bootstrap-icons.css } }