Skip to content

Commit

Permalink
chore: remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul-Mirone committed Nov 28, 2023
1 parent 67517e7 commit c5e3e30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion e2e/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Milkdown</title>
</head>
<body>
<div id="app"></div>
<milkdown-test-app></milkdown-test-app>
<script type="module" src="/main.ts"></script>
</body>
</html>
12 changes: 0 additions & 12 deletions e2e/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit c5e3e30

Please sign in to comment.