mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 19:45:09 +00:00
WebContextMenus: Fix restoring Copy & Save Image
This commit is contained in:
parent
8ecae352fd
commit
b9640433c8
1 changed files with 4 additions and 4 deletions
|
|
@ -143,12 +143,12 @@ export default definePlugin({
|
|||
replace: "false"
|
||||
},
|
||||
{
|
||||
match: /(?<=#{intl::COPY_IMAGE_MENU_ITEM}\),)action:/,
|
||||
replace: "action:()=>$self.copyImage(arguments[0]),oldAction:"
|
||||
match: /(#{intl::COPY_IMAGE_MENU_ITEM}\),.{0,75}?)action:/,
|
||||
replace: "$1action:()=>$self.copyImage(arguments[0]),oldAction:"
|
||||
},
|
||||
{
|
||||
match: /(?<=#{intl::SAVE_IMAGE_MENU_ITEM}\),)action:/,
|
||||
replace: "action:()=>$self.saveImage(arguments[0]),oldAction:"
|
||||
match: /(#{intl::SAVE_IMAGE_MENU_ITEM}\),.{0,75}?)action:/,
|
||||
replace: "$1action:()=>$self.saveImage(arguments[0]),oldAction:"
|
||||
},
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue