44 lines
1.1 KiB
Markdown
44 lines
1.1 KiB
Markdown
# Popup
|
|
|
|
[Chrome Docs](https://developer.chrome.com/docs/extensions/reference/action/) • [Firefox Docs](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/action)
|
|
|
|
## Filenames
|
|
|
|
<EntrypointPatterns
|
|
:patterns="[
|
|
['popup.html', 'popup.html'],
|
|
['popup/index.html', 'popup.html'],
|
|
]"
|
|
/>
|
|
|
|
## Definition
|
|
|
|
```html
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Default Popup Title</title>
|
|
<meta
|
|
name="manifest.default_icon"
|
|
content="{
|
|
16: '/icon-16.png',
|
|
24: '/icon-24.png',
|
|
...
|
|
}"
|
|
/>
|
|
<meta name="manifest.type" content="page_action|browser_action" />
|
|
<meta name="manifest.browser_style" content="true|false" />
|
|
<!-- Set include/exclude if the page should be removed from some builds -->
|
|
<meta name="manifest.include" content="['chrome', ...]" />
|
|
<meta name="manifest.exclude" content="['chrome', ...]" />
|
|
</head>
|
|
<body>
|
|
<!-- ... -->
|
|
</body>
|
|
</html>
|
|
```
|
|
|
|
> All manifest options default to `undefined` when the `meta` tag is not present.
|