From abbb3a467915eabf37e91329317ba6c3274fc1e0 Mon Sep 17 00:00:00 2001 From: Ilya Bogdanov Date: Fri, 25 Feb 2022 00:55:41 +0300 Subject: [PATCH] Fix debug screen regression (#3300) [ci no changelog needed] Entry points links were not clickable if an empty entry name was provided, like `http://localhost:8080?entry=` The reason was the loader div that covered the whole screen. --- app/ide-desktop/lib/content/src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/ide-desktop/lib/content/src/index.ts b/app/ide-desktop/lib/content/src/index.ts index 526b9c56e4..910388f828 100644 --- a/app/ide-desktop/lib/content/src/index.ts +++ b/app/ide-desktop/lib/content/src/index.ts @@ -949,12 +949,15 @@ async function runEntryPoint(config: Config) { let fn_name = wasm_entry_point_pfx + entryTarget let fn = wasm[fn_name] if (fn) { + // Loader will be removed by IDE after its initialization. + // All other code paths need to call `loader.destroy()`. fn() } else { loader.destroy() show_debug_screen(wasm, "Unknown entry point '" + entryTarget + "'. ") } } else { + loader.destroy() show_debug_screen(wasm, '') } }