Masonry: fix typo
This commit is contained in:
parent
4c0925a6a1
commit
5199f2bb6a
3 changed files with 4 additions and 4 deletions
2
.env
2
.env
|
@ -2,4 +2,4 @@ DEV_SERVER_HTTPS_CERT_BASE=
|
|||
DEV_SERVER_HTTPS_CERT_PASS=
|
||||
DEV_LOCATOR_EDITOR=vscode
|
||||
VITE_DEVTOOLS_OVERLAY=true
|
||||
VITE_PLATFROM_MASONRY_ALWAYS_COMPAT=
|
||||
VITE_PLATFORM_MASONRY_ALWAYS_COMPAT=
|
2
src/overrides.d.ts
vendored
2
src/overrides.d.ts
vendored
|
@ -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 {
|
||||
|
|
|
@ -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",
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue