Quieter devtools upsell
Check that we're not in a iframe before upselling.
Paul O'Shannessy committed
Jan 10, 2014 at 20:18 UTC
2c335b0e570e360d52359e7f774e5311f74d863b
1 file changed
+1
src/core/React.js
+1
@@ -71,6 +71,7 @@ var React = {
71
if (__DEV__) {
72
var ExecutionEnvironment = require('ExecutionEnvironment');
73
if (ExecutionEnvironment.canUseDOM &&
74
+ window.top === window.self &&
75
navigator.userAgent.indexOf('Chrome') > -1) {
76
console.debug(
77
'Download the React DevTools for a better development experience: ' +