Remove CanCopyImage From Match

This commit is contained in:
thororen1234 2025-06-04 15:27:46 -04:00
parent c4e3b0b116
commit db7e0060c5
No known key found for this signature in database

View file

@ -133,7 +133,7 @@ export default definePlugin({
{
find: "Copy image not supported",
replacement: {
match: /(?<=(?:canSaveImage|canCopyImage)\((\i,\i)?\)\{.{0,150})!\i\.isPlatformEmbedded/g,
match: /(?<=canSaveImage\((\i,\i)?\)\{.{0,150})!\i\.isPlatformEmbedded/g,
replace: "false"
}
},
@ -147,7 +147,7 @@ export default definePlugin({
replace: "false"
},
{
match: /return\s*?\[.{0,50}?(?=\?.{0,25}?id:"copy-image")/,
match: /return\s*?\[.{0,50}?\)(?=\?.{0,100}?id:"copy-image")/,
replace: "return [true"
},
{