Skip to content

Commit

Permalink
[release/9.0-rc2] [browser] Fix custom icu fingerprinting. (#108025)
Browse files Browse the repository at this point in the history
* Fix custom icu fingerprinting.

* fix

* Update src/mono/browser/runtime/loader/icu.ts

Co-authored-by: Pavel Savara <pavelsavara@microsoft.com>

---------

Co-authored-by: Ilona Tomkowicz <32700855+ilonatommy@users.noreply.github.com>
Co-authored-by: Pavel Savara <pavelsavara@microsoft.com>
  • Loading branch information
3 people authored Sep 21, 2024
1 parent fe77f43 commit 55c018f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mono/browser/runtime/loader/icu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ export function getIcuResourceName (config: MonoConfig): string | null {

let icuFile = null;
if (config.globalizationMode === GlobalizationMode.Custom) {
if (icuFiles.length === 1) {
icuFile = icuFiles[0];
// custom ICU file is saved in the resources with fingerprinting and does not require mapping
if (icuFiles.length >= 1) {
return icuFiles[0];
}
} else if (config.globalizationMode === GlobalizationMode.Hybrid) {
icuFile = "icudt_hybrid.dat";
Expand Down

0 comments on commit 55c018f

Please sign in to comment.