From 5ccd04478d2e1dfc58da612c35063f0021238122 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 13 Jan 2024 16:38:04 +0700 Subject: [PATCH] Reduce the chance that other Webpack extensions can cause the Patcher class not to work --- better-xcloud.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index bf41916..63bed2c 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -6877,7 +6877,7 @@ if (window.BX_VIBRATION_INTENSITY && window.BX_VIBRATION_INTENSITY < 1) { const nativeBind = Function.prototype.bind; Function.prototype.bind = function() { let valid = false; - if (arguments.length === 2 && arguments[0] === null) { + if (this.name.length <= 2 && arguments.length === 2 && arguments[0] === null) { if (arguments[1] === 0 || (typeof arguments[1] === 'function')) { valid = true; }