[Cleanup] Several small cleanups

This commit is contained in:
Beef 2023-01-14 02:39:10 +00:00
parent 985115cd9b
commit a8b5beff6e
6 changed files with 11 additions and 14 deletions

View file

@ -24,6 +24,7 @@ for (const key in window.modules) {
}
}
// Early find logic
const basicFind = (prop: string) => Object.values(window.modules).find(m => m.publicModule.exports?.[prop]).publicModule.exports;
// Hoist React