Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better handling for screenshot grab promise #9

Open
tezoatlipoca opened this issue Mar 24, 2024 · 0 comments
Open

Better handling for screenshot grab promise #9

tezoatlipoca opened this issue Mar 24, 2024 · 0 comments

Comments

@tezoatlipoca
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant