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(); + } } }