Don't render controller icon in game card

This commit is contained in:
redphx
2025-01-04 10:30:21 +07:00
parent e4dbdea9a5
commit 328fdf46ea
3 changed files with 9 additions and 9 deletions

View File

@@ -4,6 +4,9 @@ declare const $param$: { productId: string };
const supportedInputIcons = $supportedInputIcons$;
const { productId } = $param$;
// Remove controller icon
supportedInputIcons.shift();
if (window.BX_EXPOSED.localCoOpManager.isSupported(productId)) {
supportedInputIcons.push(window.BX_EXPOSED.createReactLocalCoOpIcon);
}