link to example

This commit is contained in:
Dmitry Vasilev
2023-07-14 03:02:10 +03:00
parent 2f34028956
commit 465bbd83f4
7 changed files with 147 additions and 40 deletions

9
src/effects.js vendored
View File

@@ -127,9 +127,16 @@ const render_parse_result = (ui, state) => {
}
}
export const render_initial_state = (ui, state) => {
export const render_initial_state = (ui, state, example) => {
ensure_session(ui, state)
ui.editor.switch_session(state.current_module)
if(
example != null
&& example.with_app_window
&& !localStorage.onboarding_open_app_window
) {
ui.toggle_open_app_window_tooltip(true)
}
}
export const apply_side_effects = (prev, next, command, ui) => {