this repo has no description
1import { ExtensionWebExports } from "@moonlight-mod/types"; 2import { Patch, PatchReplaceType } from "@moonlight-mod/types"; 3 4export const patches: Patch[] = [ 5 { 6 find: "DSN:function", 7 replace: { 8 type: PatchReplaceType.Normal, 9 match: /default:function\(\){return .}/, 10 replacement: 11 'default:function(){return require("disableSentry_stub").proxy()}' 12 } 13 }, 14 { 15 find: "window.DiscordSentry.addBreadcrumb", 16 replace: { 17 type: PatchReplaceType.Normal, 18 match: /default:function\(\){return .}/, 19 replacement: 20 'default:function(){return (...args)=>{moonlight.getLogger("disableSentry").debug("Sentry calling addBreadcrumb passthrough:", ...args);}}' 21 } 22 }, 23 { 24 find: "initSentry:function", 25 replace: { 26 type: PatchReplaceType.Normal, 27 match: /initSentry:function\(\){return .}/, 28 replacement: "default:function(){return ()=>{}}" 29 } 30 }, 31 { 32 find: "window.DiscordErrors=", 33 replace: { 34 type: PatchReplaceType.Normal, 35 match: /uses_client_mods:\(0,.\.usesClientMods\)\(\)/, 36 replacement: "uses_client_mods:false" 37 } 38 } 39]; 40 41export const webpackModules: ExtensionWebExports["webpackModules"] = { 42 stub: {} 43};