diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-17 20:48:14 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-17 20:48:14 -0400 |
commit | 5aa6bcdd4e23bb9e9d05181d0dc6b638e45e397b (patch) | |
tree | 1929cc92dd43d9e48d0e7dbe5649721ba9bba906 /src/client/views/SearchBox.tsx | |
parent | ea5b91c45baba7be50a5e2276f9b3618af634676 (diff) |
Moved DocServer.prepend and changed how corsProxy works
Diffstat (limited to 'src/client/views/SearchBox.tsx')
-rw-r--r-- | src/client/views/SearchBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/SearchBox.tsx b/src/client/views/SearchBox.tsx index 1b9be841f..33cb63df5 100644 --- a/src/client/views/SearchBox.tsx +++ b/src/client/views/SearchBox.tsx @@ -13,6 +13,7 @@ import { Docs } from '../documents/Documents'; import { SetupDrag } from '../util/DragManager'; import { SearchItem } from './search/SearchItem'; import "./SearchBox.scss"; +import { Utils } from '../../Utils'; library.add(faSearch); library.add(faObjectGroup); @@ -47,7 +48,7 @@ export class SearchBox extends React.Component { @action getResults = async (query: string) => { - let response = await rp.get(DocServer.prepend('/search'), { + let response = await rp.get(Utils.prepend('/search'), { qs: { query } |