From 0b65daed8b72227229bdea83484e664eac95604e Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Fri, 12 Nov 2021 02:03:55 +0100 Subject: [PATCH] =?UTF-8?q?Fonction=20plus=20utilis=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index.html.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/templates/index.html.php b/templates/index.html.php index 5931632..3580830 100644 --- a/templates/index.html.php +++ b/templates/index.html.php @@ -37,14 +37,6 @@ const cache = await caches.open('pdf'); var key = ""; var pdfHistory = {}; - function dataURLtoBlob(dataurl) { - var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1], - bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n); - while(n--){ - u8arr[n] = bstr.charCodeAt(n); - } - return new Blob([u8arr], {type:mime}); - } if(localStorage.getItem('pdfHistory')) { pdfHistory = JSON.parse(localStorage.getItem('pdfHistory')); }