mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
committed by
Andrey Lushnikov
parent
3b03ff65c7
commit
23d25a6e12
@@ -53,11 +53,11 @@ class Target {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {"page"|"service_worker"|"other"|"browser"}
|
||||
* @return {"page"|"background_page"|"service_worker"|"other"|"browser"}
|
||||
*/
|
||||
type() {
|
||||
const type = this._targetInfo.type;
|
||||
if (type === 'page' || type === 'service_worker' || type === 'browser')
|
||||
if (type === 'page' || type === 'background_page' || type === 'service_worker' || type === 'browser')
|
||||
return type;
|
||||
return 'other';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user