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

Update signature.js

History state was pushing to double URL eg. http://127.0.0.1/http://127.0.0.1/signaturepdf causing a double REVERSE_PROXY_URL URL
This commit is contained in:
Ugbana Kelvin 2025-08-19 19:35:49 +01:00 committed by GitHub
commit dfd2ef4a18
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);
});