mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-11 04:19:26 -07:00
fix(session-bindings): guard optional stats config in compile path
This commit is contained in:
@@ -294,7 +294,7 @@ export function compileSessionBindings(
|
|||||||
const legacyToggleVisibleOverlayGlobal = (
|
const legacyToggleVisibleOverlayGlobal = (
|
||||||
input.rawConfig?.shortcuts as Record<string, unknown> | undefined
|
input.rawConfig?.shortcuts as Record<string, unknown> | undefined
|
||||||
)?.toggleVisibleOverlayGlobal;
|
)?.toggleVisibleOverlayGlobal;
|
||||||
const statsToggleKey = input.statsToggleKey ?? input.rawConfig?.stats.toggleKey ?? null;
|
const statsToggleKey = input.statsToggleKey ?? input.rawConfig?.stats?.toggleKey ?? null;
|
||||||
|
|
||||||
if (legacyToggleVisibleOverlayGlobal !== undefined) {
|
if (legacyToggleVisibleOverlayGlobal !== undefined) {
|
||||||
warnings.push({
|
warnings.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user