Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions ts/handlers/html/HTMLDocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,16 @@
* Add any elements needed for the document
*/
protected addPageElements() {
const body = this.adaptor.body(this.document);
const adaptor = this.adaptor;
const body = adaptor.body(this.document);

Check warning on line 282 in ts/handlers/html/HTMLDocument.ts

View check run for this annotation

Codecov / codecov/patch

ts/handlers/html/HTMLDocument.ts#L281-L282

Added lines #L281 - L282 were not covered by tests
const node = this.documentPageElements();
if (node) {
this.adaptor.append(body, node);
const child = adaptor.firstChild(body);
if (child) {
adaptor.insert(node, child);
} else {
adaptor.append(body, node);
}

Check warning on line 290 in ts/handlers/html/HTMLDocument.ts

View check run for this annotation

Codecov / codecov/patch

ts/handlers/html/HTMLDocument.ts#L285-L290

Added lines #L285 - L290 were not covered by tests
}
}

Expand Down