Make it dev only
This commit is contained in:
parent
50bb6d867b
commit
93d450a600
|
@ -370,7 +370,7 @@ function wrapAndPatchFactory(id: PropertyKey, originalFactory: AnyModuleFactory)
|
||||||
wrappedFactory.toString = originalFactory.toString.bind(originalFactory);
|
wrappedFactory.toString = originalFactory.toString.bind(originalFactory);
|
||||||
wrappedFactory.$$vencordOriginal = originalFactory;
|
wrappedFactory.$$vencordOriginal = originalFactory;
|
||||||
|
|
||||||
if (patchedFactory !== originalFactory) {
|
if (IS_DEV && patchedFactory !== originalFactory) {
|
||||||
const patchedSource = String(patchedFactory);
|
const patchedSource = String(patchedFactory);
|
||||||
|
|
||||||
wrappedFactory.$$vencordPatchedSource = patchedSource;
|
wrappedFactory.$$vencordPatchedSource = patchedSource;
|
||||||
|
|
Loading…
Reference in a new issue