ChannelTabs: Fix Patch
This commit is contained in:
parent
434814340b
commit
cd33e2c313
1 changed files with 2 additions and 8 deletions
|
|
@ -62,14 +62,8 @@ export default definePlugin({
|
||||||
find: '"AppView"',
|
find: '"AppView"',
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /((\i\?.params)\?\.channelId.{0,600})"div",{(?=className:\i\.\i)/,
|
match: /"div",{(?=.{0,80}(\i\?\.params))/,
|
||||||
replace: "$1$self.render,{currentChannel:$2,",
|
replace: "$self.render,{currentChannel:$1,",
|
||||||
predicate: () => settings.store.tabBarPosition === "top"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
match: /((\i\?.params)\?.channelId.{0,300})"div",{/,
|
|
||||||
replace: "$1$self.render,{currentChannel:$2,",
|
|
||||||
predicate: () => settings.store.tabBarPosition === "bottom"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue