mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Update "skipFeedbackDialog" patch
This commit is contained in:
parent
749d5d720e
commit
3f834f74b6
4
dist/better-xcloud.user.js
vendored
4
dist/better-xcloud.user.js
vendored
@ -4239,9 +4239,9 @@ true` + text;
|
||||
return str = str.replace(text, newCode), str;
|
||||
},
|
||||
skipFeedbackDialog(str) {
|
||||
let text = "&&this.shouldTransitionToFeedback(";
|
||||
let text = "shouldTransitionToFeedback(e){";
|
||||
if (!str.includes(text)) return !1;
|
||||
return str = str.replace(text, "&& false " + text), str;
|
||||
return str = str.replace(text, text + "return !1;"), str;
|
||||
},
|
||||
enableNativeMkb(str) {
|
||||
let text = "e.mouseSupported&&e.keyboardSupported&&e.fullscreenSupported;";
|
||||
|
@ -632,12 +632,12 @@ true` + text;
|
||||
},
|
||||
|
||||
skipFeedbackDialog(str: string) {
|
||||
let text = '&&this.shouldTransitionToFeedback(';
|
||||
let text = 'shouldTransitionToFeedback(e){';
|
||||
if (!str.includes(text)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
str = str.replace(text, '&& false ' + text);
|
||||
str = str.replace(text, text + 'return !1;');
|
||||
return str;
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user