mirror of
https://github.com/jxnblk/mdx-deck.git
synced 2024-11-30 00:44:20 +03:00
Adjust pushState
This commit is contained in:
parent
d23381d021
commit
940f42d32d
@ -201,7 +201,7 @@ export class SlideDeck extends React.Component {
|
||||
mode: (mode || '').toLowerCase()
|
||||
})
|
||||
} else if (mode === modes.normal) {
|
||||
query += '/'
|
||||
query += window.location.pathname
|
||||
}
|
||||
const step_ = step !== -1 ? ('.' + (step + 1)) : ''
|
||||
history.pushState(null, null, query + '#' + index + step_)
|
||||
|
Loading…
Reference in New Issue
Block a user