1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-26 01:06:24 +00:00

ConsoleShortcuts: Set FluxStore toStringTag to store name (#3144)

This commit is contained in:
Sqaaakoi 2025-01-19 09:05:20 +13:00 committed by GitHub
parent 19361ef790
commit 88e3bc037d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,6 +179,16 @@ export default definePlugin({
description: "Adds shorter Aliases for many things on the window. Run `shortcutList` for a list.",
authors: [Devs.Ven],
patches: [
{
find: 'this,"_changeCallbacks",',
replacement: {
match: /\i\(this,"_changeCallbacks",/,
replace: "Reflect.defineProperty(this,Symbol.toStringTag,{value:this.getName(),configurable:!0,writable:!0,enumerable:!1}),$&"
}
}
],
startAt: StartAt.Init,
start() {
const shortcuts = makeShortcuts();