Skip to content

Commit

Permalink
Merge pull request #14 from Rubinhuang9239/fix/prevent-duplicate-decl…
Browse files Browse the repository at this point in the history
…arations

fix: prevent duplicate-declarations by check if WC is already exist.
  • Loading branch information
huodoushigemi authored Jun 12, 2024
2 parents c8fb3d3 + 3398fef commit 9d9d33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import { WaterfallElement } from './waterfall'
export * from './waterfall'
export type { WaterfallProps } from './layout'

customElements.define('wc-waterfall', WaterfallElement)
if (!customElements.get('wc-waterfall')) { customElements.define('wc-waterfall', WaterfallElement); }

0 comments on commit 9d9d33f

Please sign in to comment.