respond to browser hash to show markdown/plaintext view
This commit is contained in:
parent
c633afa184
commit
7fdaf8e3ab
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user