Fix incorrect page type condition causing incorrect document title (#1105)
This commit is contained in:
parent
5948229176
commit
48b8041800
@ -390,7 +390,7 @@ class Display extends EventDispatcher {
|
||||
}
|
||||
|
||||
async getDocumentTitle() {
|
||||
if (this._pageType === 'float') {
|
||||
if (this._pageType === 'popup') {
|
||||
return await this._getRootFrameDocumentTitle();
|
||||
}
|
||||
return document.title;
|
||||
|
Loading…
Reference in New Issue
Block a user