Commit 152cf7f7 authored by Jeff Avallone's avatar Jeff Avallone

Cleanup

parent 89bac895
......@@ -8,8 +8,6 @@ import FormActions from 'components/FormActions';
import Loader from 'components/Loader';
import Message from 'components/Message';
const toUrl = params => new URLSearchParams(params).toString();
class App extends React.PureComponent {
state = {
loading: false,
......@@ -33,7 +31,10 @@ class App extends React.PureComponent {
handleSubmit = ({ syntax, expr }) => {
if (expr) {
document.location.hash = toUrl({ syntax, expr });
document.location.hash = new URLSearchParams({
syntax,
expr
}).toString();
}
}
......
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