mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
code fixed
This commit is contained in:
@ -177,7 +177,7 @@ function registerCustomFonts() {
|
||||
}
|
||||
|
||||
if (fileEntity instanceof fs.File &&
|
||||
((<fs.File>fileEntity).extension === "ttf" || (<fs.File>fileEntity).extension === "otf")) {
|
||||
((<fs.File>fileEntity).extension === ".ttf" || (<fs.File>fileEntity).extension === ".otf")) {
|
||||
ios.registerFont(fileEntity.name);
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user