mirror of
https://github.com/Equicord/Equicord.git
synced 2025-05-11 18:05:37 +02:00
buildWeb: suppress experimental api warnings
This commit is contained in:
parent
9c7b548a9e
commit
845088ec02
3 changed files with 8 additions and 2 deletions
6
scripts/suppressExperimentalWarnings.js
Normal file
6
scripts/suppressExperimentalWarnings.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
process.emit = (originalEmit => function (name, data) {
|
||||
if (name === "warning" && data?.name === "ExperimentalWarning")
|
||||
return false;
|
||||
|
||||
return originalEmit.apply(process, arguments);
|
||||
})(process.emit);
|
Loading…
Add table
Add a link
Reference in a new issue