From c6d64f17843b884014ac76c870581c31f57fa7bf Mon Sep 17 00:00:00 2001 From: saikat Date: Thu, 1 Oct 2020 04:36:37 +0530 Subject: [PATCH] update url in the check to reactjs.org for the development version cheat as the old facebook.github.io/react always redirects to reactjs.org --- packages/react-devtools-extensions/src/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-devtools-extensions/src/background.js b/packages/react-devtools-extensions/src/background.js index 389ca1310a910..eea4a18579201 100644 --- a/packages/react-devtools-extensions/src/background.js +++ b/packages/react-devtools-extensions/src/background.js @@ -99,7 +99,7 @@ chrome.runtime.onMessage.addListener((request, sender) => { // display a custom default popup when React is *not* detected. // It is specified in the manifest. let reactBuildType = request.reactBuildType; - if (sender.url.indexOf('facebook.github.io/react') !== -1) { + if (sender.url.indexOf('reactjs.org') !== -1) { // Cheat: We use the development version on the website because // it is better for interactive examples. However we're going // to get misguided bug reports if the extension highlights it