mirror of
https://github.com/24eme/signaturepdf
synced 2024-05-29 12:03:11 +02:00
Fonction plus utilisé
This commit is contained in:
parent
424c2a785e
commit
0b65daed8b
|
@ -37,14 +37,6 @@
|
|||
const cache = await caches.open('pdf');
|
||||
var key = "<?php echo $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'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue