Fix bookmark has direct url detection #424

This commit is contained in:
Koitharu
2023-07-18 11:43:31 +03:00
parent 3a9d0def7d
commit 439a01c43f
5 changed files with 115 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ class ImageFileFilter : FilenameFilter, FileFilter {
return isExtensionValid(ext)
}
private fun isExtensionValid(ext: String): Boolean {
fun isExtensionValid(ext: String): Boolean {
return ext == "png" || ext == "jpg" || ext == "jpeg" || ext == "webp"
}
}