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

Generate iframe ids deterministically instead of randomly #20

Merged
merged 1 commit into from
Feb 15, 2024
Merged

Generate iframe ids deterministically instead of randomly #20

merged 1 commit into from
Feb 15, 2024

Conversation

oprypin
Copy link
Contributor

@oprypin oprypin commented Feb 9, 2024

Use the hash of the final HTML content as the frame id.

This will have the benefit of not overwriting all frames with different content and different file names every time the site is built.

+Refactor to not repeat the template generation code twice.

Use the hash of the final HTML content as the frame id.

This will have the benefit of not overwriting all frames with different content and different file names every time the site is built.

+Refactor to not repeat the template generation code twice.
@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (663400d) 100.00% compared to head (b2b5eec) 99.34%.

Additional details and impacted files
@@             Coverage Diff             @@
##              main      #20      +/-   ##
===========================================
- Coverage   100.00%   99.34%   -0.66%     
===========================================
  Files            1        1              
  Lines          162      153       -9     
===========================================
- Hits           162      152      -10     
- Misses           0        1       +1     
Flag Coverage Δ
unittests 99.34% <100.00%> (-0.66%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@blueswen blueswen merged commit 6531cfa into blueswen:main Feb 15, 2024
24 checks passed
@blueswen
Copy link
Owner

LGTM! Thanks for helping.

@oprypin oprypin deleted the iframeid branch February 15, 2024 18:37
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.

3 participants