Skip to content

Commit

Permalink
refactor: Improve getDefaultStyle efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
qq15725 committed Apr 14, 2023
1 parent 7abe325 commit bde517f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/copy-pseudo-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function copyPseudoClass<T extends HTMLElement | SVGElement>(
const content = style.getPropertyValue('content')
if (!content || content === 'none') return
const klasses = [uuid()]
const defaultStyle = getDefaultStyle(node.tagName, pseudoClass, context)
const defaultStyle = getDefaultStyle('DIV', pseudoClass, context)
const cloneStyle = [
`content: '${ content.replace(/'|"/g, '') }';`,
]
Expand Down

1 comment on commit bde517f

@vercel
Copy link

@vercel vercel bot commented on bde517f Apr 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

modern-screenshot – ./

modern-screenshot-qq15725.vercel.app
modern-screenshot.vercel.app
modern-screenshot-git-main-qq15725.vercel.app

Please sign in to comment.