Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added an inline comment.
  • Loading branch information
bvaughn authored Mar 11, 2021
commit b10523abae73057fe1e2ec6b52f8d338d78fedbe
4 changes: 3 additions & 1 deletion packages/react-devtools-shared/src/backend/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ import type {
RendererInterface,
} from './types';
import type {ComponentFilter} from '../types';
import {isSynchronousXHRSupported} from './utils';
import {
} from './utils';

const debug = (methodName, ...args) => {
if (__DEBUG__) {
Expand Down Expand Up @@ -216,6 +217,7 @@ export default class Agent extends EventEmitter<{|

// Notify the frontend if the backend supports the Storage API (e.g. localStorage).
// If not, features like reload-and-profile will not work correctly and must be disabled.
// The same goes for sync XHR requests; it's how DevTools injects before ReactDOM starts rendering.
let isBackendStorageAPISupported = false;
try {
localStorage.getItem('test');
Expand Down