mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-10-16 23:59:34 +02:00
Fix Logitech G Cloud's controller name
This commit is contained in:
@@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user