(currentScrollY = 0)
| 212 | |
| 213 | } |
| 214 | private _goBack(currentScrollY = 0): void { |
| 215 | const entry = this.history.pop(); |
| 216 | if (entry) { |
| 217 | if (this.currentEntry) { // should always be true |
| 218 | this.currentEntry.helpFile.scrollY = currentScrollY; |
| 219 | this.forwardHistory.push(this.currentEntry); |
| 220 | } |
| 221 | void this.showHistoryEntry(entry); |
| 222 | } |
| 223 | } |
| 224 | public async goForward(): Promise<void> { |
| 225 | const scrollY = await this.getScrollY(); |
| 226 | this._goForward(scrollY); |
no test coverage detected