mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-29 17:58:12 +08:00
Refactor platform detection to use import.meta.env.MODE instead of isPlatformNative()
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
import type { SubscriptionsRouter } from "/src/subscriptions-router";
|
||||
import { pasteFile } from "/src/utility-functions/files";
|
||||
import { patchLayout } from "/src/utility-functions/widgets";
|
||||
import { isPlatformNative } from "/wrapper/pkg/graphite_wasm_wrapper";
|
||||
import type { EditorWrapper, Layout } from "/wrapper/pkg/graphite_wasm_wrapper";
|
||||
|
||||
const subscriptions = getContext<SubscriptionsRouter>("subscriptions");
|
||||
@@ -50,7 +49,7 @@
|
||||
</LayoutCol>
|
||||
<LayoutCol class="bottom-message">
|
||||
<TextLabel italic={true} disabled={true}>
|
||||
{#if isPlatformNative()}
|
||||
{#if import.meta.env.MODE === "native"}
|
||||
You are testing Release Candidate 4 of the 1.0 desktop release. Please regularly check Discord for the next testing build and report issues you encounter.
|
||||
{/if}
|
||||
</TextLabel>
|
||||
|
||||
Reference in New Issue
Block a user