mirror of
https://github.com/kognise/water.css.git
synced 2025-12-06 23:05:07 +01:00
fix: replace <br /> with padding-top
+ prevent potential error in getFileSize()
This commit is contained in:
parent
3d667c928e
commit
75f9280dab
8 changed files with 6 additions and 9 deletions
|
|
@ -30,7 +30,7 @@ const getFileName = ({ theme, isLegacy, isStandalone }) => {
|
|||
|
||||
/** @param {VersionOptions} options */
|
||||
const getFileSize = options => {
|
||||
return FILE_SIZES[getFileName(options)] || '...'
|
||||
return FILE_SIZES[getFileName(options)] || 0
|
||||
}
|
||||
|
||||
const getFilePreloadSnippet = (mainFileName, altFileName, altTheme) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue