tezoatlipoca / GeFeSLE-plugin-ffox

Firefox plugin for GeFeSLE - Generic Federated Subscribable List Engine
0 stars 0 forks source link

Better handling for screenshot grab promise #9

Open tezoatlipoca opened 6 months ago

tezoatlipoca commented 6 months ago

receiptUpload uploads any screenshot to /fileuploadxfer and receives the complete url to the uploaded file. since its async it returns a promise that resolves to the filename, but I could never get it to consistently resolve properly The receiving end in receiptSend() would always get undefined.

as a workaround, receiptUpload stores the sshot file name in browser storage and receiptSend retreives and clears it from storage but that's a kludge

Need to fix this.