Removing empty lines and indentation

This commit is contained in:
Vincent LAURENT 2022-04-01 00:00:54 +02:00
parent b598f1f35c
commit c47c7728c8
2 changed files with 1 additions and 3 deletions

View File

@ -121,7 +121,6 @@ $f3->route('POST /sign',
unlink($tmpfile);
$svgFiles = "";
$files = Web::instance()->receive(function($file,$formFieldName){
if($formFieldName == "pdf" && strpos(Web::instance()->mime($file['tmp_name'], true), 'application/pdf') !== 0) {
$f3->error(403);

View File

@ -938,7 +938,7 @@ var pageUpload = async function() {
document.getElementById('input_pdf_upload').focus();
const cache = await caches.open('pdf');
document.getElementById('input_pdf_upload').addEventListener('change', async function(event) {
if(document.getElementById('input_pdf_upload').files[0].size > maxSize) {
if(document.getElementById('input_pdf_upload').files[0].size > maxSize) {
alert("Le PDF ne doit pas dépasser " + Math.round(maxSize/1024/1024) + " Mo");s
document.getElementById('input_pdf_upload').value = "";
@ -1013,7 +1013,6 @@ var pageSignature = async function(url) {
return;
}
if(window.location.hash && window.location.hash.match(/^\#http/)) {
let hashUrl = window.location.hash.replace(/^\#/, '');
pageUpload();