From 46ccd1d26a07606a74355846bf9e494638436432 Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Tue, 5 Apr 2016 12:50:25 -0400 Subject: [PATCH] Fix broken app for clients with react dev tools extension --- src/client/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/index.js b/src/client/index.js index 7742e77..f1e5f81 100644 --- a/src/client/index.js +++ b/src/client/index.js @@ -1,5 +1,7 @@ 'use strict'; -window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = {}; +if (!window.__REACT_DEVTOOLS_GLOBAL_HOOK__) { + window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = {}; +} const App = require('./components/app.js'); const React = require('react');