diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2022-10-24 19:18:30 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 00:18:30 +0200 |
commit | 6c3836240176eb6d174ed01281ff1dcfe5b8def3 (patch) | |
tree | 8ad961bcf6a7967781562844614ebc9c5528bb14 /src | |
parent | 00402c69d67b14259f49cc9f9ea15c8a94b7c8f7 (diff) | |
download | Vencord-6c3836240176eb6d174ed01281ff1dcfe5b8def3.tar.gz Vencord-6c3836240176eb6d174ed01281ff1dcfe5b8def3.tar.bz2 Vencord-6c3836240176eb6d174ed01281ff1dcfe5b8def3.zip |
Ignore Activities: Fix button not working (#156)
explode
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/ignoreActivities.ts (renamed from src/plugins/ignoreActivities/index.ts) | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/ignoreActivities/index.ts b/src/plugins/ignoreActivities.ts index eb956e4..cc1538a 100644 --- a/src/plugins/ignoreActivities/index.ts +++ b/src/plugins/ignoreActivities.ts @@ -16,11 +16,11 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { DataStore } from "../../api"; -import { lazyWebpack } from "../../utils"; -import { Devs } from "../../utils/constants"; -import definePlugin from "../../utils/types"; -import { filters } from "../../webpack"; +import { DataStore } from "../api"; +import { lazyWebpack } from "../utils"; +import { Devs } from "../utils/constants"; +import definePlugin from "../utils/types"; +import { filters } from "../webpack"; interface MatchAndReplace { match: RegExp; @@ -54,7 +54,7 @@ export default definePlugin({ /** Create an easily accessable variable to use the game props and then replace the boolean to determine if the button is activated or not with our custom function */ { match: /((.)=this\.props\.game)(.{1,70})=.{1,2}overlay/, replace: "$1,IgnoreActivities_gameProps=$2$3=Vencord.Plugins.plugins.IgnoreActivities.isActivityEnabled(IgnoreActivities_gameProps)" }, /** Change the handler for clicking the button */ - { match: /.\.handleOverlayToggle/, replace: "() => Vencord.Plugins.plugins.IgnoreActivities.handleActivityToggle(gameProps)" }, + { match: /.\.handleOverlayToggle/, replace: "() => Vencord.Plugins.plugins.IgnoreActivities.handleActivityToggle(IgnoreActivities_gameProps)" }, /** Change the button on component to our custom */ { match: /(\.createElement\()(.{2})\..(.{1,50}\.overlayToggleIconOn)/, replace: "$1$2.IgnoreActivities_toggleOn$3" }, /** Change the button off component to our custom */ |