MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / getTouchModeUrlActionFromSearch

Function getTouchModeUrlActionFromSearch

src/appStartupPolicy.ts:55–65  ·  view source on GitHub ↗
(search: string)

Source from the content-addressed store, hash-verified

53}
54
55export function getTouchModeUrlActionFromSearch(search: string): TouchModeStartupAction | null {
56 const touchParam = new URLSearchParams(search).get('touch');
57 if (touchParam === null) return null;
58
59 const enabled = isEnabledQueryFlag(touchParam);
60 return {
61 enabled,
62 source: 'url',
63 logMessage: `[App] Touch mode ${enabled ? 'enabled' : 'disabled'} (URL override)`,
64 };
65}
66
67export function getTouchModeAutoAction(isTouchDevice: boolean): TouchModeStartupAction | null {
68 if (!isTouchDevice) return null;

Callers 2

AppFunction · 0.90

Calls 2

isEnabledQueryFlagFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected