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