Masonry: fix typo

This commit is contained in:
thislight 2024-11-24 16:00:56 +08:00
parent 4c0925a6a1
commit 5199f2bb6a
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
3 changed files with 4 additions and 4 deletions

2
src/overrides.d.ts vendored
View file

@ -14,7 +14,7 @@ interface ImportMetaEnv {
/**
* Always use compatible version of Masonry.
*/
readonly VITE_PLATFROM_MASONRY_ALWAYS_COMPAT?: string
readonly VITE_PLATFORM_MASONRY_ALWAYS_COMPAT?: string
}
interface ImportMeta {

View file

@ -80,11 +80,11 @@ const supportsCSSMasonryLayout = /* @__PURE__ */ CSS.supports(
console.debug("supports css masonry layout", supportsCSSMasonryLayout);
const useNativeImpl = import.meta.env.VITE_PLATFROM_MASONRY_ALWAYS_COMPAT
const useNativeImpl = import.meta.env.VITE_PLATFORM_MASONRY_ALWAYS_COMPAT
? false
: supportsCSSMasonryLayout;
if (import.meta.env.VITE_PLATFROM_MASONRY_ALWAYS_COMPAT) {
if (import.meta.env.VITE_PLATFORM_MASONRY_ALWAYS_COMPAT) {
console.warn(
"Masonry is in compat mode because VITE_PLATFORM_MASONRY_ALWAYS_COMPAT is enabled",
);