mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 11:43:32 -05:00
Fix
This commit is contained in:
parent
a3aa61af0a
commit
7a612e5c13
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ export default definePlugin({
|
||||||
find: "toolbar:function",
|
find: "toolbar:function",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(function \i\(\i\){)(.{1,200}toolbar.{1,100}mobileToolbar)/,
|
match: /(function \i\(\i\){)(.{1,200}toolbar.{1,100}mobileToolbar)/,
|
||||||
replace: "$1$self.addIconToToolBar(arguments[0]);$2"
|
replace: "$1$self.addSBIconToToolBar(arguments[0]);$2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -60,7 +60,7 @@ export default definePlugin({
|
||||||
disableStyle(styles);
|
disableStyle(styles);
|
||||||
if (settings.store.IconLocation === "chat") removeChatBarButton("vc-soundlog-button");
|
if (settings.store.IconLocation === "chat") removeChatBarButton("vc-soundlog-button");
|
||||||
},
|
},
|
||||||
addIconToToolBar(e: { toolbar: React.ReactNode[] | React.ReactNode; }) {
|
addSBIconToToolBar(e: { toolbar: React.ReactNode[] | React.ReactNode; }) {
|
||||||
if (Array.isArray(e.toolbar))
|
if (Array.isArray(e.toolbar))
|
||||||
return e.toolbar.push(
|
return e.toolbar.push(
|
||||||
<ErrorBoundary noop={true}>
|
<ErrorBoundary noop={true}>
|
||||||
|
|
Loading…
Reference in a new issue