Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit ed469cf

Browse files
committed
Merge pull request react-bootstrap#726 from epeli/patch-1
Fix deprecationWarning for node
2 parents ed3f641 + d9a2783 commit ed469cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/deprecationWarning.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default function deprecationWarning(oldname, newname, link) {
22
if (process.env.NODE_ENV !== 'production') {
3-
if (!window.console && (typeof console.warn !== 'function')) {
3+
if ((typeof console === 'undefined') || (typeof console.warn !== 'function')) {
44
return;
55
}
66

0 commit comments

Comments
 (0)