refactor(core): move misc methods that only have one version from DomAdapter (#32408)
PR Close #32408
This commit is contained in:

committed by
Miško Hevery

parent
c207ad80fd
commit
1a7c79746d
@ -33,11 +33,11 @@ export class Title {
|
||||
/**
|
||||
* Get the title of the current HTML document.
|
||||
*/
|
||||
getTitle(): string { return getDOM().getTitle(this._doc); }
|
||||
getTitle(): string { return this._doc.title; }
|
||||
|
||||
/**
|
||||
* Set the title of the current HTML document.
|
||||
* @param newTitle
|
||||
*/
|
||||
setTitle(newTitle: string) { getDOM().setTitle(this._doc, newTitle); }
|
||||
setTitle(newTitle: string) { this._doc.title = newTitle || ''; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user