hashchange: Extract hashchange.go_to_location().

We use this API when we want the machinery
of the hashchanged system to come into play.
This commit is contained in:
Steve Howell
2018-12-02 16:12:47 +00:00
committed by Tim Abbott
parent 636e54389b
commit 846dfb2fe4
5 changed files with 11 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ exports.process = function (message_content) {
}
if (content === '/settings') {
window.location.hash = 'settings/your-account';
hashchange.go_to_location('settings/your-account');
return true;
}