diff options
author | Vitaly Takmazov | 2018-11-11 15:29:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | 9f1dd954d7023c6a121659d1299fb83fc117a66d (patch) | |
tree | 997663acf0ce16715728371bdf7ec4a139fcc139 /vnext/src/App.js | |
parent | 5f13cdc450dadd5708c8311880ebe9d451ae8989 (diff) |
Fix qs.parse calls
Diffstat (limited to 'vnext/src/App.js')
-rw-r--r-- | vnext/src/App.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/App.js b/vnext/src/App.js index 9c6e3a54..d4e3acfe 100644 --- a/vnext/src/App.js +++ b/vnext/src/App.js @@ -22,7 +22,7 @@ import { me } from './api'; export default class App extends React.Component { constructor(props) { super(props); - let params = qs.parse(window.location.search); + let params = qs.parse(window.location.search.substring(1)); if (params.hash) { cookies.save('hash', params.hash, { path: '/' }); window.history.replaceState({}, document.title, `${window.location.protocol}//${window.location.host}${window.location.pathname}`); |