We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f411b93 commit daf9431Copy full SHA for daf9431
replay-app/backend/models/Window.ts
@@ -33,7 +33,7 @@ export default class Window {
33
34
private readonly navHistory: { location?: IWindowLocation; replayMeta?: IReplayMeta }[] = [];
35
36
- private navCursor: number;
+ private navCursor = -1;
37
38
private _fullscreen = false;
39
private isReady: Promise<void>;
@@ -218,6 +218,7 @@ export default class Window {
218
if (historyIdx !== undefined) {
219
this.navCursor = historyIdx;
220
} else {
221
+ this.navHistory.length = this.navCursor+1;
222
this.navCursor = this.navHistory.length;
223
this.navHistory.push(history);
224
}
0 commit comments