Paulus Schoutsen 4 anni fa
parent
commit
c99e22bbdc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/start-flash.ts

+ 1 - 1
src/start-flash.ts

@@ -171,7 +171,7 @@ export const startFlash = async (
     complete${doImprov
       ? ""
       : html`, all done!<br /><br /><button
-            @click=${() => logParent.removeChild(logEl)}
+            @click=${() => logEl.parentElement?.removeChild(logEl)}
           >
             Close this dialog
           </button>`}`,