respond to browser hash to show markdown/plaintext view

This commit is contained in:
Adam Brown 2017-02-05 15:33:55 -05:00
parent c633afa184
commit 7fdaf8e3ab
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ function registerFormatListener(store) {
let nextFormat = store.getState().format;
if (nextFormat === Format.MARKDOWN)
window.history.replaceState("", document.title, window.location.pathname+"#"+nextFormat);
window.history.replaceState("", document.title, window.location.pathname+"#"+nextFormat.toLowerCase());
else if (nextFormat === Format.PLAINTEXT) {
window.history.replaceState("", document.title, window.location.pathname);