feat(Target): Pass through "background_page" types (#2439) (#2493)

This commit is contained in:
Rafal Jarmolkovič
2018-05-17 00:36:34 +03:00
committed by Andrey Lushnikov
parent 3b03ff65c7
commit 23d25a6e12
6 changed files with 39 additions and 7 deletions

View File

@@ -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';
}