(currentScrollY = 0)
| 227 | |
| 228 | } |
| 229 | private _goForward(currentScrollY = 0): void { |
| 230 | const entry = this.forwardHistory.pop(); |
| 231 | if (entry) { |
| 232 | if (this.currentEntry) { // should always be true |
| 233 | this.currentEntry.helpFile.scrollY = currentScrollY; |
| 234 | this.history.push(this.currentEntry); |
| 235 | } |
| 236 | void this.showHistoryEntry(entry); |
| 237 | } |
| 238 | } |
| 239 | private async showHistoryEntry(entry: HistoryEntry) { |
| 240 | let helpFile: HelpFile; |
| 241 | if (entry.isStale) { |
no test coverage detected