mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 15:47:18 +02:00
Don't call MkbHandler.destroy() if the MKB feature is not enabled
This commit is contained in:
parent
a4874c76db
commit
0f7ac4c372
@ -11280,7 +11280,7 @@ window.addEventListener(BxEvent.STREAM_STOPPED, e => {
|
||||
IS_PLAYING = false;
|
||||
|
||||
// Stop MKB listeners
|
||||
MkbHandler.INSTANCE.destroy();
|
||||
getPref(Preferences.MKB_ENABLED) && MkbHandler.INSTANCE.destroy();
|
||||
|
||||
const $quickBar = document.querySelector('.bx-quick-settings-bar');
|
||||
if ($quickBar) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user