diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-09 19:48:42 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-09 19:48:42 +0200 |
commit | 2105de8ca54b17a852a86efa476a4e575042b5a6 (patch) | |
tree | d03c3d770ff36161584b646a89461ca1b45799a6 /src/webpack | |
parent | bb7332cefdf3c021635291c39f3068b4deaf7a4b (diff) | |
download | Vencord-2105de8ca54b17a852a86efa476a4e575042b5a6.tar.gz Vencord-2105de8ca54b17a852a86efa476a4e575042b5a6.tar.bz2 Vencord-2105de8ca54b17a852a86efa476a4e575042b5a6.zip |
Add more Webpack Commons & utils
Diffstat (limited to 'src/webpack')
-rw-r--r-- | src/webpack/common.tsx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/webpack/common.tsx b/src/webpack/common.tsx index 1a15489..b795c06 100644 --- a/src/webpack/common.tsx +++ b/src/webpack/common.tsx @@ -8,7 +8,12 @@ export const Margins = lazyWebpack(filters.byProps(["marginTop20"])); export let FluxDispatcher: Other.FluxDispatcher; export let React: typeof import("react"); + +export let GuildStore: Stores.GuildStore; export let UserStore: Stores.UserStore; +export let SelectedChannelStore: Stores.SelectedChannelStore; +export let ChannelStore: Stores.ChannelStore; + export const Forms = {} as { FormTitle: Components.FormTitle; FormSection: any; @@ -86,7 +91,12 @@ waitFor(["dispatch", "subscribe"], m => { }; m.subscribe("CONNECTION_OPEN", cb); }); + waitFor(["getCurrentUser", "initialize"], m => UserStore = m); +waitFor("getSortedPrivateChannels", m => ChannelStore = m); +waitFor("getCurrentlySelectedChannelId", m => SelectedChannelStore = m); +waitFor("getGuildCount", m => GuildStore = m); + waitFor(["Hovers", "Looks", "Sizes"], m => Button = m); waitFor(filters.byCode("helpdeskArticleId"), m => Switch = m); waitFor(["Positions", "Colors"], m => Tooltip = m); |