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

report(psi): reset template styles on every call of prepareLabData #5877

Merged
merged 1 commit into from Aug 21, 2018

Conversation

brendankenny
Copy link
Member

@paulirish

Since re-running was happening in the same page, <style> elements for the old report div were being removed but not added to the new report div (since they were flagged as already added).

Now, prepareLabData() always resets the attribute flag that marks <style>s as used, so styles will always be included in the returned element. As long as the entire div from a previous call to prepareLabData() has been removed this should be fine.

@paulirish paulirish merged commit 5043a08 into master Aug 21, 2018
@brendankenny brendankenny deleted the resettemplates branch August 21, 2018 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants