Skip to content

Commit 86681e2

Browse files
authored
refactor: simplify the code (#91)
1 parent 1bbd4d1 commit 86681e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export { reactive } from '@vue/reactivity'
44

55
import { createApp } from './app'
66

7-
let s
8-
if ((s = document.currentScript) && s.hasAttribute('init')) {
7+
const s = document.currentScript
8+
if (s && s.hasAttribute('init')) {
99
createApp().mount()
1010
}

0 commit comments

Comments
 (0)