fix(runtime-dom): should not access document in non-browser env
fix #657
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user