From 7fdaf8e3ab804d2c4792dd8a7bc41ca90da7e0fc Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Sun, 5 Feb 2017 15:33:55 -0500 Subject: [PATCH] respond to browser hash to show markdown/plaintext view --- src/client/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/index.js b/src/client/index.js index eb6d555..ab4a9e2 100644 --- a/src/client/index.js +++ b/src/client/index.js @@ -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);