mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-22 22:45:09 +00:00
use undefined
This commit is contained in:
parent
5f547a1611
commit
5082553723
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ function shouldIgnoreValue(value: any) {
|
|||
// Discord might export a Proxy that returns non-null values for any property key which would pass all findByProps filters.
|
||||
// One example of this is their i18n Proxy. However, that is already covered by the IntlMessagesProxy check above.
|
||||
// As a fallback if they ever change the name or add a new Proxy, use a unique string to detect such proxies and ignore them
|
||||
if (value[PROXY_CHECK]) {
|
||||
if (value[PROXY_CHECK] !== void 0) {
|
||||
// their i18n Proxy "caches" by setting each accessed property to the return, so try to delete
|
||||
Reflect.deleteProperty(value, PROXY_CHECK);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue