dynamic image modal api: fix patch
This commit is contained in:
parent
fbe587fe55
commit
29784ed997
1 changed files with 2 additions and 1 deletions
|
|
@ -14,7 +14,8 @@ export default definePlugin({
|
|||
description: "Allows you to omit either width or height when opening an image modal",
|
||||
patches: [
|
||||
{
|
||||
find: ".renderLinkComponent)?",
|
||||
// TODO: bundler compat
|
||||
find: /\.renderLinkComponent[)?]\?/,
|
||||
replacement: {
|
||||
// widthAndHeightPassed = w != null && w !== 0 && h == null || h === 0
|
||||
match: /(?<=\i=)(null!=\i&&0!==\i)&&(null!=\i&&0!==\i)/,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue