mirror of
https://github.com/jxnblk/mdx-deck.git
synced 2024-11-26 00:35:02 +03:00
Adjust query params
This commit is contained in:
parent
4ee0ef190b
commit
df92e5e651
@ -136,9 +136,8 @@ export class SlideDeck extends React.Component {
|
||||
return
|
||||
}
|
||||
const { index, mode } = this.state
|
||||
let query = ''
|
||||
let query = '?'
|
||||
if (mode === modes.presenter) query += 'presenter'
|
||||
query = query ? '?' + query : ''
|
||||
history.pushState(null, null, query + '#' + index)
|
||||
localStorage.setItem('mdx-slide', index)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user