mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +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 New Issue
Block a user