mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 12:56:42 +02:00
Bug fixes
This commit is contained in:
2
dist/better-xcloud.user.js
vendored
2
dist/better-xcloud.user.js
vendored
@@ -3619,7 +3619,7 @@ var ENDING_CHUNKS_PATCH_NAME = "loadingEndingChunks", LOG_TAG3 = "Patcher", PATC
|
|||||||
return !1;
|
return !1;
|
||||||
if (PatcherUtils.indexOf(str, '"AppInsightsCore', index, 200) < 0)
|
if (PatcherUtils.indexOf(str, '"AppInsightsCore', index, 200) < 0)
|
||||||
return !1;
|
return !1;
|
||||||
return PatcherUtils.replaceWith(str, ".track=function(", ".track=function(e){},!!function(", index);
|
return PatcherUtils.replaceWith(str, index, ".track=function(", ".track=function(e){},!!function(");
|
||||||
},
|
},
|
||||||
disableTelemetry(str) {
|
disableTelemetry(str) {
|
||||||
if (!str.includes(".disableTelemetry=function(){return!1}"))
|
if (!str.includes(".disableTelemetry=function(){return!1}"))
|
||||||
|
@@ -64,7 +64,7 @@ const PATCHES = {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return PatcherUtils.replaceWith(str, text, '.track=function(e){},!!function(', index);
|
return PatcherUtils.replaceWith(str, index, text, '.track=function(e){},!!function(');
|
||||||
},
|
},
|
||||||
|
|
||||||
// Set disableTelemetry() to true
|
// Set disableTelemetry() to true
|
||||||
|
@@ -6,7 +6,7 @@ import { getPref } from "./settings-storages/global-settings-storage";
|
|||||||
|
|
||||||
|
|
||||||
export function addCss() {
|
export function addCss() {
|
||||||
const STYLUS_CSS = renderStylus();
|
const STYLUS_CSS = renderStylus() as unknown as string;
|
||||||
let css = STYLUS_CSS;
|
let css = STYLUS_CSS;
|
||||||
|
|
||||||
const PREF_HIDE_SECTIONS = getPref(PrefKey.UI_HIDE_SECTIONS);
|
const PREF_HIDE_SECTIONS = getPref(PrefKey.UI_HIDE_SECTIONS);
|
||||||
|
Reference in New Issue
Block a user