Bug fixes

This commit is contained in:
redphx
2024-08-02 07:19:27 +07:00
parent 8c7e4650d4
commit 5db35cdcc9
3 changed files with 3 additions and 3 deletions

View File

@@ -3619,7 +3619,7 @@ var ENDING_CHUNKS_PATCH_NAME = "loadingEndingChunks", LOG_TAG3 = "Patcher", PATC
return !1;
if (PatcherUtils.indexOf(str, '"AppInsightsCore', index, 200) < 0)
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) {
if (!str.includes(".disableTelemetry=function(){return!1}"))

View File

@@ -64,7 +64,7 @@ const PATCHES = {
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

View File

@@ -6,7 +6,7 @@ import { getPref } from "./settings-storages/global-settings-storage";
export function addCss() {
const STYLUS_CSS = renderStylus();
const STYLUS_CSS = renderStylus() as unknown as string;
let css = STYLUS_CSS;
const PREF_HIDE_SECTIONS = getPref(PrefKey.UI_HIDE_SECTIONS);