mirror of https://github.com/vuejs/core.git
fix(runtime-dom): should not access document in non-browser env
fix #657
This commit is contained in:
parent
963c71a7ed
commit
48152bc88e
|
@ -1,4 +1,4 @@
|
||||||
const doc = document
|
const doc = (typeof document !== 'undefined' ? document : null) as Document
|
||||||
const svgNS = 'http://www.w3.org/2000/svg'
|
const svgNS = 'http://www.w3.org/2000/svg'
|
||||||
|
|
||||||
export const nodeOps = {
|
export const nodeOps = {
|
||||||
|
|
Loading…
Reference in New Issue