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

Update for new babbel version #31

Merged
merged 5 commits into from
Jul 26, 2024

Conversation

wromijn
Copy link

@wromijn wromijn commented Jul 17, 2024

A Babbel update 2 days ago broke the plugin: the button wasn't showing anymore. I changed the selector to match the new color class that they assigned. After that, the review items could not be read because the structure of the session object probably has changed. It seems that getting the values from the "allItems" key fixes it.

I'm a backend java developer though, so not sure about best practices or anything in javascript. Feel free to trash it and write your own solution :-)

@wromijn
Copy link
Author

wromijn commented Jul 25, 2024

They reverted the button class to its original value today, so I updated the PR to only contain the change of the session object structure

@wromijn
Copy link
Author

wromijn commented Jul 26, 2024

And today they changed back to the new color. It seems they switch between "primary-emphasis" and "secondary-default" regularly, breaking the button selector every time. I got fed up and changed the PR so it matches either. A selector that does not depend on the color attribute might be an option to explore.

@pavelgordon
Copy link
Owner

I an also a backend dev :) looks good to me, thanks for contributing! I will submit new version to google chrome extension store, should be available in a few days

@pavelgordon pavelgordon merged commit e71631b into pavelgordon:master Jul 26, 2024
3 checks passed
@wromijn wromijn deleted the update-for-new-babbel-version branch July 27, 2024 05:16
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

Successfully merging this pull request may close these issues.

2 participants