fix(browser_adapter): assigning null to document.title sets the title to "null" (IE11, Firefox)

This commit is contained in:
Marc Laval 2015-05-21 11:47:12 +02:00
parent 9802debf71
commit 92c2c33a84
1 changed files with 1 additions and 1 deletions

View File

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