mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Disable update prompt on Android
This commit is contained in:
@@ -206,6 +206,11 @@ export default function App() {
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
// don't show update stuff when on android
|
||||
if (window.__ANDROID__?.isThere()) {
|
||||
setUpdateFound('');
|
||||
return;
|
||||
}
|
||||
async function fetchReleases() {
|
||||
const releases = await fetch(
|
||||
`https://api.github.com/repos/${GH_REPO}/releases`
|
||||
|
||||
@@ -66,9 +66,7 @@ export function WidgetsComponent() {
|
||||
bodyPartsToReset="fingers"
|
||||
></ResetButton>
|
||||
<ClearMountingButton></ClearMountingButton>
|
||||
{(typeof __ANDROID__ === 'undefined' || !__ANDROID__?.isThere()) && (
|
||||
<BVHButton></BVHButton>
|
||||
)}
|
||||
{!window.__ANDROID__?.isThere() && <BVHButton></BVHButton>}
|
||||
<TrackingPauseButton></TrackingPauseButton>
|
||||
</div>
|
||||
<div className="w-full">
|
||||
|
||||
10
gui/src/vite-env.d.ts
vendored
10
gui/src/vite-env.d.ts
vendored
@@ -4,14 +4,14 @@
|
||||
declare const __COMMIT_HASH__: string;
|
||||
declare const __VERSION_TAG__: string;
|
||||
declare const __GIT_CLEAN__: boolean;
|
||||
declare const __ANDROID__:
|
||||
| {
|
||||
isThere: () => boolean;
|
||||
}
|
||||
| undefined;
|
||||
|
||||
interface Window {
|
||||
readonly isTauri: boolean;
|
||||
readonly __ANDROID__:
|
||||
| {
|
||||
isThere: () => boolean;
|
||||
}
|
||||
| undefined;
|
||||
}
|
||||
|
||||
declare module 'tailwind-gradient-mask-image';
|
||||
|
||||
Reference in New Issue
Block a user