Unverified Commit 0b9ceb41 authored by kyleplo's avatar kyleplo Committed by GitHub

Fix getting querystring

parent 78b88443
......@@ -39,6 +39,8 @@ class Search extends React.Component {
this.state.loadMore = false;
let mode = '';
const query = window.location.search;
const q = query.lastIndexOf('q=');
const m = query.lastIndexOf('mode=');
if (m !== -1) {
mode = query.substring(m + 5, query.length).toLowerCase();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment