From c5e3e30a099e2e5aa45ca5d4d4204907f73237ee Mon Sep 17 00:00:00 2001 From: Mirone Date: Tue, 28 Nov 2023 10:37:42 +0800 Subject: [PATCH] chore: remove duplicate code --- e2e/src/index.html | 2 +- e2e/src/main.ts | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/e2e/src/index.html b/e2e/src/index.html index 8f2155d8533..df3b883ae8c 100644 --- a/e2e/src/index.html +++ b/e2e/src/index.html @@ -6,7 +6,7 @@ Milkdown -
+ diff --git a/e2e/src/main.ts b/e2e/src/main.ts index dae56b484aa..4e69bb57fc0 100644 --- a/e2e/src/main.ts +++ b/e2e/src/main.ts @@ -60,15 +60,3 @@ function App() { } customElements.define('milkdown-test-app', c(App)) - -const app = document.createElement('milkdown-test-app') - -const root = document.getElementById('app') - -if (!root) - throw new Error('Not found root element #app') - -while (root?.firstChild) - root.removeChild(root.firstChild) - -root.appendChild(app)