2020-06-04 14:56:45 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Target](./puppeteer.target.md) > [type](./puppeteer.target.type.md)
|
|
|
|
|
|
|
|
## Target.type() method
|
|
|
|
|
2020-06-22 12:57:04 +00:00
|
|
|
Identifies what kind of target this is.
|
|
|
|
|
2020-06-04 14:56:45 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
type(): 'page' | 'background_page' | 'service_worker' | 'shared_worker' | 'other' | 'browser' | 'webview';
|
|
|
|
```
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
'page' \| 'background\_page' \| 'service\_worker' \| 'shared\_worker' \| 'other' \| 'browser' \| 'webview'
|
|
|
|
|
2020-06-22 12:57:04 +00:00
|
|
|
## Remarks
|
|
|
|
|
|
|
|
See [docs](https://developer.chrome.com/extensions/background_pages) for more info about background pages.
|
|
|
|
|