Skip to content

Commit dd549aa

Browse files
author
Michael Hoffman
committed
Remove dup line
1 parent ed86ec3 commit dd549aa

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

microsoft-edge/extensions-chromium/getting-started/part1-simple-extension.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ To test out the completed extension that you are building in this tutorial, down
3131

3232
Every extension package must have a `manifest.json` file at the root. The manifest provides details of your extension, the extension package version, the extension name and description, and so on.
3333

34-
The following code snippet outlines the basic information needed in your `manifest.json` file.
34+
The following code outlines the basic information needed in your `manifest.json` file:
3535

3636
#### [Manifest V2](#tab/v2)
37+
3738
```json
3839
{
3940
"name": "NASA picture of the day viewer",
@@ -68,7 +69,7 @@ For icons:
6869
* We recommend using `PNG` format, but you can also use `BMP`, `GIF`, `ICO` or `JPEG` formats.
6970
* We recommend using images that are 128 x 128 px, which are resized by the browser if necessary.
7071

71-
The directories of your project should be similar to the following structure.
72+
The directories of your project should be similar to the following structure:
7273

7374
```shell
7475
└── part1
@@ -80,7 +81,7 @@ The directories of your project should be similar to the following structure.
8081
└── nasapod128x128.png
8182
```
8283

83-
Next, add the icons to the `manifest.json` file. Update your `manifest.json` file with the icons information so that it matches the following code snippet. The `png` files listed in the following code are available in the download file mentioned earlier in this article.
84+
Next, add the icons to the `manifest.json` file. Update your `manifest.json` file with the icons information so that it matches the following code. The `png` files listed in the following code are available in the download file mentioned earlier in this article.
8485

8586
#### [Manifest V2](#tab/v2)
8687

@@ -124,7 +125,7 @@ Next, add the icons to the `manifest.json` file. Update your `manifest.json` fil
124125

125126
Now, create a `HTML` file to run when the user launches your extension. Create the HTML file named `popup.html` in a directory named `popup`. When users select the icon to launch the extension, `popup/popup.html` is displayed as a modal dialog.
126127

127-
Add the code from the following code snippet to `popup.html` to display the stars image.
128+
Add the code from the following listing to `popup.html` to display the stars image:
128129

129130
```html
130131
<html lang="en">
@@ -140,7 +141,7 @@ Add the code from the following code snippet to `popup.html` to display the star
140141
</html>
141142
```
142143

143-
Ensure that you add the image file `images/stars.jpeg` to the images folder. The directories of your project should be similar to the following structure.
144+
Ensure that you add the image file `images/stars.jpeg` to the images folder. The directories of your project should be similar to the following structure:
144145

145146
```shell
146147
└── part1
@@ -156,8 +157,7 @@ Ensure that you add the image file `images/stars.jpeg` to the images folder. Th
156157
└── popup.html
157158
```
158159

159-
Finally, ensure you register the pop-up in `manifest.json` under `browser_action`, as shown in the following code snippet.
160-
Finally, ensure you register the pop-up in `manifest.json` under `browser_action` (in Manifest V2) or under `action` (in Manifest V3), as shown in the following code snippet.
160+
Finally, register the pop-up in `manifest.json` under `browser_action` (in Manifest V2) or under `action` (in Manifest V3), as shown in the following code:
161161

162162
#### [Manifest V2](#tab/v2)
163163

0 commit comments

Comments
 (0)