Vencord/scripts/suppressExperimentalWarnings.js
2022-10-15 20:56:48 +02:00

7 lines
216 B
JavaScript

process.emit = (originalEmit => function (name, data) {
if (name === "warning" && data?.name === "ExperimentalWarning")
return false;
return originalEmit.apply(process, arguments);
})(process.emit);