Skip to content

Commit

Permalink
fix(copy-code): ignoreSelector dose not work (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
FuckDoctors committed Aug 15, 2024
1 parent 7382ace commit df7f5b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/features/plugin-copy-code/src/client/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ declare const __CC_DELAY__: number
declare const __CC_DURATION__: number
declare const __CC_LOCALES__: CopyCodePluginLocaleConfig
declare const __CC_SELECTOR__: string[]
declare const __CC_IGNORE_SELECTOR__: string[]
declare const __CC_SHOW_IN_MOBILE__: boolean

export default defineClientConfig({
setup: () => {
useCopyCode({
selector: __CC_SELECTOR__,
ignoreSelector: __CC_IGNORE_SELECTOR__,
locales: __CC_LOCALES__,
duration: __CC_DURATION__,
delay: __CC_DELAY__,
Expand Down

0 comments on commit df7f5b9

Please sign in to comment.