Skip to content

Commit

Permalink
Add React Developer Tools hook (storybookjs#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattdanger committed Apr 26, 2016
1 parent 6d4902f commit 0cd27b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/iframe.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ export default function (headHtml) {
<!DOCTYPE html>
<html>
<head>
<script>
if (window.parent !== window) {
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;
}
</script>
<title>React Storybook</title>
${headHtml}
</head>
Expand Down

0 comments on commit 0cd27b3

Please sign in to comment.