From af978cb46d81f1d6d0fa8f98c92c7476415d4b58 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilev Date: Tue, 27 Feb 2024 21:18:15 +0800 Subject: [PATCH] refactor rename --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 3709bac..3984531 100644 --- a/src/index.js +++ b/src/index.js @@ -61,7 +61,7 @@ const on_window_load = w => { // By default run code in hidden iframe, until user explicitly opens visible // window let iframe -const open_run_iframe = (state) => { +const open_app_iframe = (state) => { iframe = document.createElement('iframe') iframe.src = get_html_url(state) iframe.setAttribute('hidden', '') @@ -247,7 +247,7 @@ export const init = async (container, _COMMANDS) => { render_initial_state(ui, state, example) - open_run_iframe(state) + open_app_iframe(state) } export const get_state = () => state