Skip to content

Commit

Permalink
[twisty] Fix up the editor's connection to the setup prop.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Aug 28, 2021
1 parent 53e4c8f commit 8bfc286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export class TwistyAlgEditorV2 extends ManagedCustomElement {
return;
}
(async () => {
this.algString = (await twistyPlayer.model.algProp.get()).alg.toString();
this.algString = (await this.#algProp!.get()).alg.toString();
})();

if (this.#twistyPlayerProp === "algProp") {
Expand Down
2 changes: 1 addition & 1 deletion src/sites/alpha.twizzle.net/edit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h2>
<twisty-alg-editor-v2
class="experimental-setup-alg"
placeholder="[Click here to add anchor setup alg.]"
twisty-player-prop="experimentalSetupAlg"
twisty-player-prop="setupProp"
></twisty-alg-editor-v2>
</section>
<div id="moves-sticky-wrapper">
Expand Down

0 comments on commit 8bfc286

Please sign in to comment.