Fix PatchHelper and DevCompanion not replacing $self correctly

This commit is contained in:
Nuckyz 2025-02-12 19:26:47 -03:00
parent 146a2ac77d
commit fad2f1e5b4
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ function initWs(isManual = false) {
try {
const matcher = canonicalizeMatch(parseNode(match));
const replacement = canonicalizeReplace(parseNode(replace), "PlaceHolderPluginName");
const replacement = canonicalizeReplace(parseNode(replace), 'Vencord.Plugins.plugins["PlaceHolderPluginName"]"');
const newSource = src.replace(matcher, replacement as string);