Skip to content

Commit

Permalink
Revert "🔨 stop exposing grapher for charts embedded on a data page (#…
Browse files Browse the repository at this point in the history
…4216)"

This reverts commit 664378f.
  • Loading branch information
sophiamersmann authored Dec 2, 2024
1 parent af57fc2 commit ee1b2ad
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 @@ -3126,7 +3126,7 @@ export class Grapher
this.setBaseFontSize()
this.setUpIntersectionObserver()
this.setUpWindowResizeEventHandler()
if (!this.isEmbeddedInADataPage) exposeInstanceOnWindow(this, "grapher")
exposeInstanceOnWindow(this, "grapher")
// Emit a custom event when the grapher is ready
// We can use this in global scripts that depend on the grapher e.g. the site-screenshots tool
this.disposers.push(
Expand Down

0 comments on commit ee1b2ad

Please sign in to comment.