Refactor platform detection to use import.meta.env.MODE instead of isPlatformNative()

This commit is contained in:
Keavon Chambers
2026-04-03 21:26:27 -07:00
parent 4360359d60
commit 55463fe0aa
7 changed files with 12 additions and 29 deletions
@@ -10,7 +10,6 @@
import type { AppWindowStore } from "/src/stores/app-window";
import type { DialogStore } from "/src/stores/dialog";
import type { TooltipStore } from "/src/stores/tooltip";
import { isPlatformNative } from "/wrapper/pkg/graphite_wasm_wrapper";
const dialog = getContext<DialogStore>("dialog");
const tooltip = getContext<TooltipStore>("tooltip");
@@ -29,7 +28,7 @@
{#if $tooltip.visible}
<Tooltip />
{/if}
{#if isPlatformNative() && new Date() > new Date("2026-04-30")}
{#if import.meta.env.MODE === "native" && new Date() > new Date("2026-04-30")}
<LayoutCol class="release-candidate-expiry">
<TextLabel>
<p>