Fix Logitech G Cloud's controller name

This commit is contained in:
redphx
2024-03-12 16:56:08 +07:00
parent 6beb4b2f72
commit e47a0521c8

View File

@@ -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');