File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
frontend/viewer/src/lib/utils Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,8 @@ export interface BackHandlerConfig {
2020class BackHandler {
2121 static #ignorePopstate = false ;
2222 static #backStack: BackHandler [ ] = [ ] ;
23- readonly #id = crypto . randomUUID ( ) . split ( '-' ) [ 0 ] ;
2423 private get fullKey ( ) {
25- return `BackHandler-${ this . #id } - ${ this . config . key } ` ;
24+ return `BackHandler-${ this . config . key } ` ;
2625 } ;
2726
2827 constructor ( private config : BackHandlerConfig ) {
@@ -34,7 +33,6 @@ class BackHandler {
3433 void queueHistoryChange ( ( ) => history . pushState ( {
3534 backHandler : true ,
3635 key : this . config . key ,
37- id : this . #id,
3836 } , '' ) , this . fullKey ) ;
3937 } else {
4038 this . remove ( ) ;
Original file line number Diff line number Diff line change @@ -21,9 +21,8 @@ export class QueryParamState {
2121 return this . #current;
2222 }
2323
24- readonly #id = crypto . randomUUID ( ) . split ( '-' ) [ 0 ] ;
2524 private get fullKey ( ) {
26- return `QueryParamState-${ this . #id } - ${ this . config . key } ` ;
25+ return `QueryParamState-${ this . config . key } ` ;
2726 } ;
2827
2928 #waitingForHistoryChange: boolean = false ;
You can’t perform that action at this time.
0 commit comments