* Updates the current URL to include a hashtag of the current page number.
()
| 33 | * Updates the current URL to include a hashtag of the current page number. |
| 34 | */ |
| 35 | function updateURL() { |
| 36 | try { |
| 37 | window.history.replaceState({} , null, '#' + currentPosition()); |
| 38 | } catch (e) { |
| 39 | window.location.hash = currentPosition(); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | |
| 44 | /** |
no test coverage detected