Skip to content

Commit

Permalink
fix(grapher): make title clickable when iframe embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Oct 9, 2023
1 parent 282d1c7 commit 45e9f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@ourworldindata/grapher/src/core/Grapher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2668,7 +2668,7 @@ export class Grapher
}

@computed get isOnCanonicalUrl(): boolean {
if (!this.canonicalUrl) return false
if (!this.canonicalUrl || this.isInIFrame) return false
return (
getWindowUrl().pathname === Url.fromURL(this.canonicalUrl).pathname
)
Expand Down

0 comments on commit 45e9f9f

Please sign in to comment.