fix(browser_adapter): assigning null to document.title sets the title to "null" (IE11, Firefox)
This commit is contained in:
parent
9802debf71
commit
92c2c33a84
|
@ -276,7 +276,7 @@ getTitle(): string {
|
||||||
return document.title;
|
return document.title;
|
||||||
}
|
}
|
||||||
setTitle(newTitle: string) {
|
setTitle(newTitle: string) {
|
||||||
document.title = newTitle;
|
document.title = newTitle || '';
|
||||||
}
|
}
|
||||||
elementMatches(n, selector: string): boolean {
|
elementMatches(n, selector: string): boolean {
|
||||||
return n instanceof HTMLElement && n.matches(selector);
|
return n instanceof HTMLElement && n.matches(selector);
|
||||||
|
|
Loading…
Reference in New Issue