Fix incorrect page type condition causing incorrect document title (#1105)

This commit is contained in:
toasted-nutbread 2020-12-13 10:33:47 -05:00 committed by GitHub
parent 5948229176
commit 48b8041800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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