Release v0.1.1 2026-07-10
This commit is contained in:
+9
-1
@@ -2,16 +2,24 @@ import { StrictMode } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { Capacitor } from "@capacitor/core";
|
||||
import App from "./App";
|
||||
import { BottomDisplayApp } from "./platform/BottomDisplayApp";
|
||||
import { startControllerInput } from "./input/controller";
|
||||
import "./styles.css";
|
||||
|
||||
const nativeLayoutRequested = new URLSearchParams(window.location.search).has("nativeLayout");
|
||||
const displayMode = new URLSearchParams(window.location.search).get("display");
|
||||
|
||||
if (Capacitor.isNativePlatform() || nativeLayoutRequested) {
|
||||
document.documentElement.classList.add("native-platform");
|
||||
}
|
||||
if (displayMode === "top" || displayMode === "bottom") {
|
||||
document.documentElement.dataset.displaySurface = displayMode;
|
||||
}
|
||||
|
||||
startControllerInput();
|
||||
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
{displayMode === "bottom" ? <BottomDisplayApp /> : <App />}
|
||||
</StrictMode>,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user