Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pages/home/previews/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { Obj, ObjType } from "~/types"
import { ext, formatDate, getFileSize, loadScriptIIFE } from "~/utils"

const HEIF_EXTS = new Set(["heic", "heif", "avif", "vvc", "avc"])
const isHeif = (name: string) => HEIF_EXTS.has(ext(name))
const isHeif = (name: string) => HEIF_EXTS.has(ext(name).toLowerCase())
const ZOOM_MIN = 0.1
const ZOOM_MAX = 10
const ZOOM_WHEEL_FACTOR = 1.08
Expand Down