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:
parent
ce5882301e
commit
dfd2ef4a18
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue