MCPcopy Create free account
hub / github.com/danja/dogalog / loadStepCode

Method loadStepCode

src/tutorial/tutorialOverlay.js:160–166  ·  view source on GitHub ↗

* Load current step's code into editor

()

Source from the content-addressed store, hash-verified

158 * Load current step's code into editor
159 */
160 loadStepCode() {
161 const step = tutorialSteps[this.manager.getCurrentStep()];
162 if (step && step.code) {
163 this.applyCode(step.code.trim());
164 this.hide();
165 }
166 }
167
168 /**
169 * Handle next button click

Callers 2

createOverlayMethod · 0.95
setupEventListenersMethod · 0.95

Calls 2

hideMethod · 0.95
getCurrentStepMethod · 0.80

Tested by

no test coverage detected