mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-15 20:32:25 +00:00
refactor: correct the gamepad lock id
This commit is contained in:
parent
7637620ac5
commit
12af0e1d5e
1 changed files with 2 additions and 2 deletions
|
|
@ -132,10 +132,10 @@ const GamepadProvider = ({ enabled, onGuide, children }: GamepadProviderProps) =
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (onGuide) {
|
if (onGuide) {
|
||||||
on('buttonX', 'gamepad-guide', onGuide);
|
on('buttonX', 'guide', onGuide);
|
||||||
}
|
}
|
||||||
return () => {
|
return () => {
|
||||||
off('buttonX', 'gamepad-guide');
|
off('buttonX', 'guide');
|
||||||
};
|
};
|
||||||
}, [onGuide]);
|
}, [onGuide]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue