aboutsummaryrefslogtreecommitdiff
path: root/src/webpack
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2022-11-22 22:51:45 -0300
committerGitHub <noreply@github.com>2022-11-23 02:51:45 +0100
commit91f1d68e29d61820b778d59f33645e59abb24247 (patch)
treea392ab6c27b8248401c4c8bc9754e1d98d064ea7 /src/webpack
parent7e4f4f179462298370964414a8bdbbc7c0902035 (diff)
downloadVencord-91f1d68e29d61820b778d59f33645e59abb24247.tar.gz
Vencord-91f1d68e29d61820b778d59f33645e59abb24247.tar.bz2
Vencord-91f1d68e29d61820b778d59f33645e59abb24247.zip
feat(plugins): Keep Current Channel plugin (#248)
Diffstat (limited to 'src/webpack')
-rw-r--r--src/webpack/common.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/webpack/common.tsx b/src/webpack/common.tsx
index c649c19..fa6bb0e 100644
--- a/src/webpack/common.tsx
+++ b/src/webpack/common.tsx
@@ -41,6 +41,7 @@ export const PresenceStore = lazyWebpack(filters.byProps("setCurrentUserOnConnec
export let GuildStore: Stores.GuildStore;
export let UserStore: Stores.UserStore;
export let SelectedChannelStore: Stores.SelectedChannelStore;
+export let SelectedGuildStore: any;
export let ChannelStore: Stores.ChannelStore;
export const Forms = {} as {
@@ -125,6 +126,13 @@ export const Clipboard = mapMangledModuleLazy('document.queryCommandEnabled("cop
SUPPORTS_COPY: x => typeof x === "boolean",
});
+export const NavigationRouter = mapMangledModuleLazy("Transitioning to external path", {
+ transitionTo: filters.byCode("Transitioning to external path"),
+ transitionToGuild: filters.byCode("transitionToGuild"),
+ goBack: filters.byCode("goBack()"),
+ goForward: filters.byCode("goForward()"),
+});
+
waitFor("useState", m => React = m);
waitFor(["dispatch", "subscribe"], m => {
@@ -139,6 +147,7 @@ waitFor(["dispatch", "subscribe"], m => {
waitFor(["getCurrentUser", "initialize"], m => UserStore = m);
waitFor("getSortedPrivateChannels", m => ChannelStore = m);
waitFor("getCurrentlySelectedChannelId", m => SelectedChannelStore = m);
+waitFor("getLastSelectedGuildId", m => SelectedGuildStore = m);
waitFor("getGuildCount", m => GuildStore = m);
waitFor(["Hovers", "Looks", "Sizes"], m => Button = m);