Rename to miniSCP; migrate legacy data dirs on boot

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jokin
2026-07-12 01:53:26 +02:00
co-authored by Claude Fable 5
parent 320080de6d
commit ba0b2434fb
7 changed files with 54 additions and 24 deletions
+3 -2
View File
@@ -1,11 +1,12 @@
// Injected by the bun process via BrowserWindow preload before any page script.
// Brand-neutral name so rebrands never touch this file.
declare global {
interface Window {
__BUNSCP_PLATFORM?: string;
__APP_PLATFORM?: string;
}
}
export const PLATFORM = typeof window !== 'undefined' ? (window.__BUNSCP_PLATFORM ?? '') : '';
export const PLATFORM = typeof window !== 'undefined' ? (window.__APP_PLATFORM ?? '') : '';
/** True when the window uses macOS hiddenInset chrome (tab bar fused with titlebar). */
export const IS_MAC_CHROME = PLATFORM === 'darwin';