Skip to content

Commit

Permalink
♻️ Allow specifying custom origin in getIframeSrc"
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Nov 14, 2021
1 parent 5f990f1 commit 1ebdf2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@shared/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export function getIframeSrc({
theme = 'light',
reactionsEnabled = '1',
emitMetadata = '0',
session
}: Giscus & Session) {
const origin = location.href
session,
origin = location.href
}: Giscus & Session & { origin?: string }) {
const description = getOgMetaContent('description')

const params: Record<string, string> = {
Expand Down

0 comments on commit 1ebdf2a

Please sign in to comment.