Skip to content

Commit

Permalink
use named exports
Browse files Browse the repository at this point in the history
  • Loading branch information
czue committed Dec 11, 2024
1 parent 9955049 commit 12bc047
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CommentSection } from './CommentSection'
import { Filters } from './CommentFilters'
import type { CommentOptions } from './types'

const BlueskyComments = {
export const BlueskyComments = {
init: function(elementId: string, options: CommentOptions) {
const element = document.getElementById(elementId)
if (!element) return;
Expand All @@ -24,8 +24,6 @@ const BlueskyComments = {
}

// Support both module exports and window global
export default BlueskyComments;

// Add to window object for UMD builds
if (typeof window !== 'undefined') {
(window as any).BlueskyComments = BlueskyComments;
Expand Down

0 comments on commit 12bc047

Please sign in to comment.