1
1
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:
Brent Jackson 2018-08-11 10:45:40 -07:00
parent d23381d021
commit 940f42d32d

View File

@ -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_)