Skip to content
Snippets Groups Projects
Verified Commit b80f9eec authored by Alex ORLUC's avatar Alex ORLUC
Browse files

rm console log

parent 3b4a8fc5
No related branches found
No related tags found
No related merge requests found
...@@ -123,10 +123,8 @@ export class SignaturesComponent implements OnInit { ...@@ -123,10 +123,8 @@ export class SignaturesComponent implements OnInit {
if (fileToUpload.size <= 2000000) { if (fileToUpload.size <= 2000000) {
if (['image/png', 'image/jpg', 'image/jpeg', 'image/gif'].indexOf(fileToUpload.type) !== -1) { if (['image/png', 'image/jpg', 'image/jpeg', 'image/gif'].indexOf(fileToUpload.type) !== -1) {
console.log(fileToUpload.type);
const myReader: FileReader = new FileReader(); const myReader: FileReader = new FileReader();
myReader.onloadend = (e) => { myReader.onloadend = (e) => {
console.log(myReader.result.toString());
const newEncodedSign = myReader.result.toString().replace('data:' + fileToUpload.type + ';base64,', ''); const newEncodedSign = myReader.result.toString().replace('data:' + fileToUpload.type + ';base64,', '');
localStorage.setItem('signature', JSON.stringify(newEncodedSign)); localStorage.setItem('signature', JSON.stringify(newEncodedSign));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment