1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2026-03-14 13:55:44 +01:00

Merge pull request #187 from kelvin019/patch-2

Update signature.js
This commit is contained in:
Vincent LAURENT 2025-09-01 10:48:31 +02:00 committed by GitHub
commit c38fdd6dfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1176,7 +1176,8 @@ async function pageUpload() {
if(await canUseCache()) {
const file = document.getElementById('input_pdf_upload').files[0]
storeFileInCache(file, file.name);
history.pushState({}, '', `${REVERSE_PROXY_URL ? '/': ''}${REVERSE_PROXY_URL}/signature#${file.name}`);
//history.pushState({}, '', `${REVERSE_PROXY_URL ? '/': ''}${REVERSE_PROXY_URL}/signature#${file.name}`);
history.pushState({}, '', `${REVERSE_PROXY_URL}/signature#${encodeURIComponent(file.name)}`);
}
pageSignature(null);
});