Skip to content

Commit 1341da4

Browse files
Clear out other Node globals
1 parent cccde88 commit 1341da4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,4 @@
117117
}
118118
}},
119119
"defaultProject": "nw-angular"
120-
}
120+
}

src/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
<link rel="icon" type="image/x-icon" href="favicon.ico">
99
<script>
1010
window.nw_global = window.global;
11-
window.global = undefined;
11+
window.global = undefined; // can be accessed with window.nw.global or window.nw_global
12+
window.require = undefined; // can be accessed with window.nw.require
13+
window.process = undefined; // can be accessed with window.nw.process
1214
</script>
1315
</head>
1416
<body>

0 commit comments

Comments
 (0)