UNPKG
@antv/torch
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
torchjs for @antv.
github.com/antvis/tools
antvis/tools
@antv/torch
/
lib
/
domGlobalLoose.js
14 lines
(11 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require
(
'jsdom-global/register'
);
document
.
domain
=
''
;
// default domain
const
WRITABLE_WINDOW_PROPERTIES
= [
'navigator'
,
'document'
];
WRITABLE_WINDOW_PROPERTIES
.
forEach
(
prop
=>
{
Object
.
defineProperty
(
window
, prop, {
writable
:
true
}); });