Skip to content

Commit

Permalink
Merge pull request #4 from oslabs-beta/rydang/hmr
Browse files Browse the repository at this point in the history
implemented hmr
  • Loading branch information
starkspark committed Jul 22, 2019
2 parents 9f91895 + 33ca3f0 commit f82accb
Show file tree
Hide file tree
Showing 9 changed files with 203 additions and 250 deletions.
Empty file added extension/background.js
Empty file.
2 changes: 1 addition & 1 deletion extension/devtools.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</head>

<body>
<script src="bundle.js"></script>
<script src="dist/main.bundle.js"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion extension/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
chrome.devtools.panels.create('React Time-Travel', null, null, (panel) => { });
chrome.devtools.panels.create('React Time-Travel', null, 'panel.html', (panel) => { });
3 changes: 2 additions & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"version": "1.0",
"devtools_page": "devtools.html",
"description": "A Chrome extension that helps debug React by memorizing the state of components with every render.",
"manifest_version": 2
"manifest_version": 2,
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'"
}
12 changes: 12 additions & 0 deletions extension/panel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
time test 1
</body>
</html>
Loading

0 comments on commit f82accb

Please sign in to comment.