We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de97a11 commit 5375158Copy full SHA for 5375158
web/core/src/legacy-adapter.ts
@@ -61,6 +61,23 @@ export class LegacyAdapter implements GameAdapter {
61
height: this.container.clientHeight,
62
63
unstable_replayerControls: unstable_replayerControls,
64
+
65
+ // For message passing to an outer frame
66
+ setCurrentStep: (step: number) =>
67
+ window.parent.postMessage(
68
+ {
69
+ step,
70
+ },
71
+ '*'
72
+ ),
73
+ setPlaying: (playing?: boolean) => {
74
75
76
+ playing,
77
78
79
+ );
80
81
};
82
83
// Some legacy renderers take the container as a second argument.
0 commit comments