~patrickhaussmann/doi.app.5ls.de

29f87472990ed61c682abbf848c9affd16e90c3b — patrickhaussmann 1 year, 10 months ago 3f0891c
Fix reset hash if invalid doi
1 files changed, 2 insertions(+), 2 deletions(-)

M index.html
M index.html => index.html +2 -2
@@ 119,13 119,13 @@
            "/" +
            doi;

            location.hash = doi
          location.hash = doi;
        } else {
          document.body.classList.add("invalid");
          a_doi.href = "javascript:void(0)";
          a_lmu.href = "javascript:void(0)";
          a_sci.href = "javascript:void(0)";
          window.history.replaceState({}, document.title, "/");
          location.hash = "";
        }
      }