Skip to content

Commit 0734cc1

Browse files
Christopher StamperChristopher Stamper
authored andcommitted
changed logic to support 3/4 operating systems
1 parent 7055370 commit 0734cc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/models/routes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ export class Routes {
108108
this.current += delta;
109109
// If the difference is not 0, navigate to the target route using window.history.go() method
110110
if (delta !== 0) {
111-
window.history.go(this.current);
111+
console.log('OS: ', navigator.platform);
112+
window.history.go(delta);
112113
// Return true to indicate that the navigation was successful
113114
return true;
114115
}

0 commit comments

Comments
 (0)