@@ -50,10 +51,15 @@
}));
document.getElementById('input_pdf_upload').files = dataTransfer.files;
document.getElementById('input_pdf_upload').dispatchEvent(new Event("change"));
+
+ history.replaceState({}, "Signature de PDF", "/");
}
if(window.location.hash) {
uploadFromUrl(window.location.hash.replace(/^\#/, ''));
}
+ window.addEventListener('hashchange', function() {
+ uploadFromUrl(window.location.hash.replace(/^\#/, ''));
+ })