From a4581e7a7c6fa8721f760357a40db1a924a2491d Mon Sep 17 00:00:00 2001 From: richard-dds Date: Tue, 6 Aug 2019 10:23:04 -0400 Subject: [PATCH] js `this` woes --- js/lib/upload.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/lib/upload.js b/js/lib/upload.js index b3ff730f..e77d403c 100644 --- a/js/lib/upload.js +++ b/js/lib/upload.js @@ -8,7 +8,6 @@ class AzureUploader { } async upload(file, objectName) { - console.log(this) const blobService = Azure.createBlobServiceWithSas( `https://${this.accountName}.blob.core.windows.net`, this.sasToken @@ -24,7 +23,7 @@ class AzureUploader { } return new Promise((resolve, reject) => { - fileReader.addEventListener('load', function(f) { + fileReader.addEventListener('load', f => { blobService.createBlockBlobFromText( this.containerName, `${objectName}.pdf`,