mirror of
https://github.com/booklore-app/booklore.git
synced 2025-12-23 22:28:11 -05:00
Cast to number
This commit is contained in:
@@ -165,12 +165,12 @@ export class EpubViewerComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
increaseFontSize(): void {
|
||||
this.fontSize = Math.min(this.fontSize + 10, FALLBACK_EPUB_SETTINGS.maxFontSize);
|
||||
this.fontSize = Math.min(Number(this.fontSize) + 10, FALLBACK_EPUB_SETTINGS.maxFontSize);
|
||||
this.updateFontSize();
|
||||
}
|
||||
|
||||
decreaseFontSize(): void {
|
||||
this.fontSize = Math.max(this.fontSize - 10, FALLBACK_EPUB_SETTINGS.minFontSize);
|
||||
this.fontSize = Math.max(Number(this.fontSize) - 10, FALLBACK_EPUB_SETTINGS.minFontSize);
|
||||
this.updateFontSize();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user