mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
7025f1c5ea
* docs(new): migrate Target to TSDoc Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
688 B
688 B
Home > puppeteer > Target > type
Target.type() method
Identifies what kind of target this is.
Signature:
type(): 'page' | 'background_page' | 'service_worker' | 'shared_worker' | 'other' | 'browser' | 'webview';
Returns:
'page' | 'background_page' | 'service_worker' | 'shared_worker' | 'other' | 'browser' | 'webview'
Remarks
See docs for more info about background pages.