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 securenetsystems.ts — DOM Changed #4516

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

spjpgrd
Copy link

@spjpgrd spjpgrd commented Feb 14, 2024

Describe the changes you made
Wasn't selecting the correct elements anymore. Duration was also changed from being displayed to being a transition-duration on a progress bar element.

Was using WWCD's stream to run against.

@yayuyokitano yayuyokitano added updated For things that were updated, e.g. connectors, icons patch-change For patch changes labels Feb 15, 2024
Comment on lines 23 to 24
let computedStyle = window.getComputedStyle('.progressBar');
let durationInSeconds = computedStyle.getPropertyValue('transition-duration');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work. Try using const durationInSeconds = Util.getCSSPropertyFromSelectors('.progressBar', 'transition-duration')

@yayuyokitano
Copy link
Member

Thank you for the contribution! See comment above.
Will need to do some testing on this to see if it works across other sites, as based on the old code I suspect they might not all have had the exact same dom in the past. See #3470

@spjpgrd
Copy link
Author

spjpgrd commented Feb 15, 2024

@yayuyokitano thanks for the review. I'll take a look later at #3470 to do a proper vetting, and add back in whatever is necessary 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-change For patch changes updated For things that were updated, e.g. connectors, icons
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants