diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-13 11:54:41 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-13 11:54:41 +0300 |
commit | 6900dff23d70ea59b13b299a9966378ed3e0358f (patch) | |
tree | 6d86b23ec2693b0926f0ae42aae625f45170e5d6 /app/assets/javascripts/experimental_flags.js | |
parent | d741df1dfb5644bc4d17ce0719db1da236403c65 (diff) |
Reload page after changing navigation preference
Closes #34968
Diffstat (limited to 'app/assets/javascripts/experimental_flags.js')
-rw-r--r-- | app/assets/javascripts/experimental_flags.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/experimental_flags.js b/app/assets/javascripts/experimental_flags.js index dbd3843cef7..6ee65ca72f9 100644 --- a/app/assets/javascripts/experimental_flags.js +++ b/app/assets/javascripts/experimental_flags.js @@ -7,5 +7,8 @@ export default () => { Cookies.set(el.name, el.value, { expires: 365 * 10, }); + + document.body.scrollTop = 0; + window.location.reload(); }); }; |