From e47a0521c8af288c6706536b598cf94bf1471161 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Tue, 12 Mar 2024 16:56:08 +0700 Subject: [PATCH] Fix Logitech G Cloud's controller name --- better-xcloud.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index 15bcef0..0e42519 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -11597,7 +11597,7 @@ function showGamepadToast(gamepad) { } // Remove "(STANDARD GAMEPAD Vendor: xxx Product: xxx)" from ID - const gamepadId = gamepad.id.replace(/ \(.* Vendor: \w+ Product: \w+\)$/, ''); + const gamepadId = gamepad.id.replace(/ \(.*?Vendor: \w+ Product: \w+\)$/, ''); text += ` - ${gamepadId}`; const status = gamepad.connected ? t('connected') : t('disconnected');