-
-
Notifications
You must be signed in to change notification settings - Fork 19
feat: add support for first, second, and third injection independently #81
Conversation
There is still an issue, where the book script cannot proceed with the automatic reservation:
This seems to trigger a whole page reload, after that the script isn't able to resume where it was: selecting the master patient. I believe this was already broken before because in the current version I am unable to even check the automatic reservation option. Will investigate into that later on, maybe. If anyone has any idea of how to fix this, you're welcome :) |
Yeah, this is from before. I filed #70 about that. I believe we'll need to run a different script after the page reload. |
Thank you for pointing out this issue. If I understand it correctly I broke the current "wanted" behaviour with my bugfix. The script unintentionally exited early in In 787ff96 I fixed the popup handling and the submission of the confirmation button will now succeed again. The side effect is that the user will never have a notification because we no longer execute await browser.runtime.sendMessage book.js#L474 nor await browser.runtime.sendMessage book.js#L464 as the scripts exits early after the reload happening with fireFullClick(popupConfirmation) book.js#L445 and no more error is thrown because the popup confirmation succeeds. Probably I should revert this fix for now. What do you think? EDIT: Another temporary possible fix coming to my mind is to always throw right after |
@hschaeidt as you may have heard, we need this now in France :). Do you think that this PR is ready? |
It might need some rework depending on what changed on Doctolib's DOM side in the meantime and if #70 is still relevant in this context. I can probably afford to spend some time on it within the next week to clean it up and get it ready. |
IMHO we can merge even if #70 isn't fixed. (it still works for most use cases) |
…efore showing the confirmation button
Okay, it's working in a reliable way now with the last commit. I did some tests with vaccination centers, but not with doctors or pharmacies. However, issue #70 needs to be treated separately in my opinion. The topic is too big to be solved within this merge request. The booking behaviour doesn't change in any case from |
Thanks you very much! I'll review. The code this afternoon and try to make a release. |
Thanks @hschaeidt! |
The first and the second commit could be cherry-picked individually, as they are only bug fixes of the existing code.
autoBook
status was not correctly read from the storage