Skip to content

Commit

Permalink
fix: remove window to make compatible with nuxt
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoporto committed Dec 1, 2024
1 parent 9721562 commit 952f3bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/SvgToInline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,3 @@ export class SvgToInline extends LitElement {
: this._statusElement}`
}
}

declare global {
interface HTMLElementTagNameMap {
'svg-to-inline': SvgToInline
}
}
8 changes: 7 additions & 1 deletion src/svg-to-inline.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import { SvgToInline } from './SvgToInline.js'

window.customElements.define('svg-to-inline', SvgToInline)
customElements.define('svg-to-inline', SvgToInline)

declare global {
interface HTMLElementTagNameMap {
'svg-to-inline': SvgToInline
}
}

0 comments on commit 952f3bf

Please sign in to comment.