Skip to content

Commit

Permalink
fix(runtime-dom): should not access document in non-browser env
Browse files Browse the repository at this point in the history
fix #657
  • Loading branch information
yyx990803 committed Jan 26, 2020
1 parent 963c71a commit 48152bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-dom/src/nodeOps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const doc = document
const doc = (typeof document !== 'undefined' ? document : null) as Document
const svgNS = 'http://www.w3.org/2000/svg'

export const nodeOps = {
Expand Down

0 comments on commit 48152bc

Please sign in to comment.