Skip to content

Commit

Permalink
[FIX] Prevent reload on value change
Browse files Browse the repository at this point in the history
Fixes #4
  • Loading branch information
tomlutzenberger committed Dec 1, 2016
1 parent dd7c1ef commit bb731b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ function updateUrlParams() {

'use strict';

var values = getValues();
var
values = getValues(),
urlParams = '?o=' + values.o + '&n=' + values.n + '&p=' + values.p;

location.search = '?o=' + values.o + '&n=' + values.n + '&p=' + values.p;
history.pushState(null, null, urlParams);
}


Expand Down
2 changes: 1 addition & 1 deletion js/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb731b9

Please sign in to comment.