Skip to content

Commit 31cc1ee

Browse files
committed
Fixing require?
1 parent 3b30d14 commit 31cc1ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sigma.export.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ var sigma = this.sigma,
55
sigma.conrad = conrad;
66

77
// Dirty polyfills to permit sigma usage in node
8-
if (HTMLElement === undefined)
9-
var HTMLElement = function() {};
8+
if (typeof HTMLElement === 'undefined')
9+
HTMLElement = function() {};
1010

11-
if (window === undefined)
12-
var window = {
11+
if (typeof window === 'undefined')
12+
window = {
1313
addEventListener: function() {}
1414
};
1515

0 commit comments

Comments
 (0)