| Conditions | 2 |
| Total Lines | 6 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | import {IObserver} from '@enbock/state-value-observer/Observer'; |
||
| 21 | |||
| 22 | 1 | initialize(): void { |
|
| 23 | 2 | if (this.currentPage.value == null) return; |
|
| 24 | 1 | const firstPage: IPageData = this.currentPage.value; |
|
| 25 | 1 | this.history.replaceState(firstPage, firstPage.name, firstPage.baseUrl); |
|
| 26 | 1 | this.updatePage(firstPage); |
|
| 27 | } |
||
| 48 |