From 2378d4c2bebb30272773993557518ac53b012a08 Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Thu, 29 Aug 2019 12:02:13 -0400 Subject: [PATCH] Reloads the page if href contains hash Forces a reload if the content location href contains a hash. --- src/share.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/share.js b/src/share.js index 177a1c6..b942b0b 100644 --- a/src/share.js +++ b/src/share.js @@ -21,12 +21,18 @@ async function listen() { await close(); Preview.close(); window.location = Config.location.href; + if (window.location.hash) { + window.location.reload(); + } } // Need to set cookie if (ref && ref !== cookie) { await displayLoading(); Preview.set(ref); window.location = Config.location.href; + if (window.location.hash) { + window.location.reload(); + } } }