Skip to content
Snippets Groups Projects
Commit d49eb632 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixed an ugly bug

parent 51fa2400
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,8 @@ class StateHandler extends Component { ...@@ -32,7 +32,8 @@ class StateHandler extends Component {
this.sendEvent("update", [this.state]); this.sendEvent("update", [this.state]);
} }
parse(options = {}) { parse(overrides = {}) {
const options = {};
function split(str, sep, n) { function split(str, sep, n) {
const out = []; const out = [];
let lastIndex = 0; let lastIndex = 0;
...@@ -64,6 +65,7 @@ class StateHandler extends Component { ...@@ -64,6 +65,7 @@ class StateHandler extends Component {
}); });
return { return {
...options, ...options,
...overrides,
query: query.join(" ") query: query.join(" ")
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment