STR v2.1.2
This commit is contained in:
parent
1fa29886ed
commit
d9a5e9b37f
|
@ -1,4 +1,7 @@
|
||||||
# [SaveToRedux](https://1lighty.github.io/BetterDiscordStuff/?plugin=SaveToRedux "SaveToRedux") Changelog
|
# [SaveToRedux](https://1lighty.github.io/BetterDiscordStuff/?plugin=SaveToRedux "SaveToRedux") Changelog
|
||||||
|
### 2.1.2
|
||||||
|
- Fixed startup error
|
||||||
|
|
||||||
### 2.1.1
|
### 2.1.1
|
||||||
- Fixed sub context menu layering issue.
|
- Fixed sub context menu layering issue.
|
||||||
![image](https://i.imgur.com/jY5lcoA.png)
|
![image](https://i.imgur.com/jY5lcoA.png)
|
||||||
|
|
|
@ -41,7 +41,7 @@ var SaveToRedux = (() => {
|
||||||
twitter_username: ''
|
twitter_username: ''
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
version: '2.1.1',
|
version: '2.1.2',
|
||||||
description: 'Allows you to save images, videos, profile icons, server icons, reactions, emotes and custom status emotes to any folder quickly, as well as install plugins from direct links.',
|
description: 'Allows you to save images, videos, profile icons, server icons, reactions, emotes and custom status emotes to any folder quickly, as well as install plugins from direct links.',
|
||||||
github: 'https://github.com/1Lighty',
|
github: 'https://github.com/1Lighty',
|
||||||
github_raw: 'https://raw.githubusercontent.com/1Lighty/BetterDiscordPlugins/master/Plugins/SaveToRedux/SaveToRedux.plugin.js'
|
github_raw: 'https://raw.githubusercontent.com/1Lighty/BetterDiscordPlugins/master/Plugins/SaveToRedux/SaveToRedux.plugin.js'
|
||||||
|
@ -50,7 +50,7 @@ var SaveToRedux = (() => {
|
||||||
{
|
{
|
||||||
title: 'fixed',
|
title: 'fixed',
|
||||||
type: 'fixed',
|
type: 'fixed',
|
||||||
items: ['Fixed sub context menu layering issue.\n![image](https://i.imgur.com/jY5lcoA.png)']
|
items: ['Fixed startup error']
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
defaultConfig: [
|
defaultConfig: [
|
||||||
|
@ -442,7 +442,7 @@ var SaveToRedux = (() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
patchUserContextMenus() {
|
patchUserContextMenus() {
|
||||||
const CTXs = WebpackModules.findAll(({ default: { displayName } }) => displayName && (displayName.endsWith('UserContextMenu') || displayName === 'GroupDMContextMenu'));
|
const CTXs = WebpackModules.findAll(m => m.default && m.default.displayName && (m.default.displayName.endsWith('UserContextMenu') || m.default.displayName === 'GroupDMContextMenu'));
|
||||||
for (const CTX of CTXs) {
|
for (const CTX of CTXs) {
|
||||||
Patcher.after(CTX, 'default', (_, [props], ret) => {
|
Patcher.after(CTX, 'default', (_, [props], ret) => {
|
||||||
const menu = Utilities.getNestedProp(
|
const menu = Utilities.getNestedProp(
|
||||||
|
@ -610,17 +610,17 @@ var SaveToRedux = (() => {
|
||||||
};
|
};
|
||||||
|
|
||||||
Patcher.after(
|
Patcher.after(
|
||||||
WebpackModules.find(({ default: { displayName } }) => displayName === 'NativeImageContextMenu'),
|
WebpackModules.find(m => m.default && m.default.displayName && m.default.displayName === 'NativeImageContextMenu'),
|
||||||
'default',
|
'default',
|
||||||
(_, [props], ret) => patchHandler(props, ret, true)
|
(_, [props], ret) => patchHandler(props, ret, true)
|
||||||
);
|
);
|
||||||
Patcher.after(
|
Patcher.after(
|
||||||
WebpackModules.find(({ default: { displayName } }) => displayName === 'MessageContextMenu'),
|
WebpackModules.find(m => m.default && m.default.displayName && m.default.displayName === 'MessageContextMenu'),
|
||||||
'default',
|
'default',
|
||||||
(_, [props], ret) => patchHandler(props, ret)
|
(_, [props], ret) => patchHandler(props, ret)
|
||||||
);
|
);
|
||||||
Patcher.after(
|
Patcher.after(
|
||||||
WebpackModules.find(({ default: { displayName } }) => displayName === 'MessageSearchResultContextMenu'),
|
WebpackModules.find(m => m.default && m.default.displayName && m.default.displayName === 'MessageSearchResultContextMenu'),
|
||||||
'default',
|
'default',
|
||||||
(_, [props], ret) => patchHandler(props, ret)
|
(_, [props], ret) => patchHandler(props, ret)
|
||||||
);
|
);
|
||||||
|
@ -628,7 +628,7 @@ var SaveToRedux = (() => {
|
||||||
|
|
||||||
patchGuildContextMenu() {
|
patchGuildContextMenu() {
|
||||||
Patcher.after(
|
Patcher.after(
|
||||||
WebpackModules.find(({ default: { displayName } }) => displayName === 'GuildContextMenu'),
|
WebpackModules.find(m => m.default && m.default.displayName && m.default.displayName === 'GuildContextMenu'),
|
||||||
'default',
|
'default',
|
||||||
(_, [props], ret) => {
|
(_, [props], ret) => {
|
||||||
const menu = Utilities.getNestedProp(
|
const menu = Utilities.getNestedProp(
|
||||||
|
|
Loading…
Reference in New Issue