Skip to content
Snippets Groups Projects
Commit bc444149 authored by chrisgarrity's avatar chrisgarrity
Browse files

export tutorial initialization for www

Export the tutorial card URL query string handling for www.
Also fix typo
parent 2e08c392
Branches
Tags
No related merge requests found
import GUI from './containers/gui.jsx';
import AppStateHOC from './lib/app-state-hoc.jsx';
import GuiReducer, {guiInitialState, guiMiddleware, initFullScreen, initPlayer} from './reducers/gui';
import {detectTutorialId} from './lib/tutorial-from-url';
import GuiReducer, {guiInitialState, guiMiddleware, initFullScreen, initPlayer, initTutorialCard} from './reducers/gui';
import LocalesReducer, {localesInitialState, initLocale} from './reducers/locales';
import {ScratchPaintReducer} from 'scratch-paint';
import {setFullScreen, setPlayer} from './reducers/mode';
......@@ -24,5 +25,7 @@ export {
initLocale,
localesInitialState,
setFullScreen,
setPlayer
setPlayer,
detectTutorialId,
initTutorialCard
};
......@@ -70,7 +70,7 @@ const AppStateHOC = function (WrappedComponent, localesOnly) {
if (tutorialId !== null) {
// When loading a tutorial from the URL,
// load w/o preview modal
// open requested tutorial card or tutorials mocal for 'all'
// open requested tutorial card or tutorials library modal for 'all'
if (tutorialId === 'all') {
initializedGui = initTutorialLibrary(initializedGui);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment