Skip to content

Commit 48ffabd

Browse files
committed
Support nodeunit and other node-like environments
Fixes #338
1 parent 509843e commit 48ffabd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/_footer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ if (typeof define === 'function' && define.amd) {
1616
window.Raven = Raven;
1717
}
1818

19-
})(window);
19+
})(typeof window !== 'undefined' ? window : this);

0 commit comments

Comments
 (0)