Skip to content

Commit

Permalink
devtools support
Browse files Browse the repository at this point in the history
  • Loading branch information
lxieyang committed Feb 21, 2021
1 parent 8a4a893 commit ec28fa1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

- **_Recently updated from React ~~16~~ to 17 and Webpack ~~4~~ to 5!_**
- **_Recently added [TypeScript](https://www.typescriptlang.org/) Support!_**
- **_Recently added [devtools](https://developer.chrome.com/docs/extensions/mv3/devtools/) Support! Thanks [GeekaholicLin](https://github.com/lxieyang/chrome-extension-boilerplate-react/issues/17)!_**

## Features

Expand Down
6 changes: 5 additions & 1 deletion src/pages/Devtools/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
chrome.devtools.panels.create('Dev Tools', 'icon-34.png', 'panel.html');
chrome.devtools.panels.create(
'Dev Tools from chrome-extension-boilerplate-react',
'icon-34.png',
'panel.html'
);
3 changes: 1 addition & 2 deletions src/pages/Panel/Panel.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';

import './Panel.css';

const Panel = (): JSX.Element => {
const Panel: React.FC = () => {
return (
<div className="container">
<h1>Dev Tools Panel</h1>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Panel/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Panel</title>
<title>Dev Tools Panel</title>
</head>

<body>
Expand Down

0 comments on commit ec28fa1

Please sign in to comment.