mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
@@ -68,9 +68,9 @@ var ReactPerf = {
|
||||
|
||||
if (__DEV__) {
|
||||
var ExecutionEnvironment = require('ExecutionEnvironment');
|
||||
var URL = (ExecutionEnvironment.canUseDOM && window.location.href) || '';
|
||||
var url = (ExecutionEnvironment.canUseDOM && window.location.href) || '';
|
||||
ReactPerf.enableMeasure = ReactPerf.enableMeasure ||
|
||||
!!URL.match(/[?&]react_perf\b/);
|
||||
(/[?&]react_perf\b/).test(url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user