From c47c7728c8d9832f86a8dffd8cc3fe24ff1c67ce Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Fri, 1 Apr 2022 00:00:54 +0200 Subject: [PATCH] Removing empty lines and indentation --- app.php | 1 - public/js/signature.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app.php b/app.php index ea061e6..166bc5a 100644 --- a/app.php +++ b/app.php @@ -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); diff --git a/public/js/signature.js b/public/js/signature.js index e29cf5c..71140d2 100644 --- a/public/js/signature.js +++ b/public/js/signature.js @@ -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();