mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Removed the Profiler screenshot capture feature
This wasn't reliable because of browser extension API limitations and required serious throttling to avoid harming performance, so I've decided to just remove it entirely for now.
This commit is contained in:
@@ -75,15 +75,3 @@ if (!backendInitialized) {
|
||||
}
|
||||
}, 500);
|
||||
}
|
||||
|
||||
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
|
||||
if (request.event === 'screenshotCaptured') {
|
||||
window.postMessage(
|
||||
{
|
||||
source: 'react-devtools-content-script',
|
||||
payload: request,
|
||||
},
|
||||
'*'
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user