Fix IgnoreActivities
This commit is contained in:
parent
fe2ed0776f
commit
164fd43cc4
1 changed files with 4 additions and 2 deletions
|
|
@ -256,8 +256,10 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "#{intl::SETTINGS_GAMES_TOGGLE_OVERLAY}",
|
find: "#{intl::SETTINGS_GAMES_TOGGLE_OVERLAY}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /#{intl::SETTINGS_GAMES_TOGGLE_OVERLAY}.+?}\(\),(?<={overlay:\i,.+?=(\i),.+?)(?=!(\i))/,
|
// let { ... nowPlaying: a = !1 ...
|
||||||
replace: (m, props, nowPlaying) => `${m}$self.renderToggleGameActivityButton(${props},${nowPlaying}),`
|
// let { overlay: b ... } = Props
|
||||||
|
match: /#{intl::SETTINGS_GAMES_TOGGLE_OVERLAY}.+?}\(\),(?<=nowPlaying:(\i)=!1,.+?overlay:\i,[^}]+?\}=(\i).+?)/,
|
||||||
|
replace: (m, nowPlaying, props) => `${m}$self.renderToggleGameActivityButton(${props},${nowPlaying}),`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// Activities from the apps launcher in the bottom right of the chat bar
|
// Activities from the apps launcher in the bottom right of the chat bar
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue