mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix ExecutionEnvironment.canUseDOM for IE8.
This commit is contained in:
+3
-2
@@ -20,10 +20,11 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
var canUseDOM =
|
||||
var canUseDOM = !!(
|
||||
typeof window !== 'undefined' &&
|
||||
window.document &&
|
||||
typeof window.document.createElement === 'function';
|
||||
window.document.createElement
|
||||
);
|
||||
|
||||
/**
|
||||
* Simple, lightweight module assisting with the detection and context of
|
||||
|
||||
Reference in New Issue
Block a user