Paulus Schoutsen 4 年 前
コミット
c99e22bbdc
1 ファイル変更1 行追加1 行削除
  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>`}`,