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

Move inline JS from html to js file #1752

Merged
merged 2 commits into from
Jan 26, 2023
Merged

Move inline JS from html to js file #1752

merged 2 commits into from
Jan 26, 2023

Conversation

pavel-karatsiuba
Copy link
Contributor

@pavel-karatsiuba pavel-karatsiuba commented Jan 25, 2023

Setting variable articleId was removed from HTML.
Article ID was added to DOM element attribute to read it from javascript.
Fixes #1578

@codecov
Copy link

codecov bot commented Jan 25, 2023

Codecov Report

Base: 69.09% // Head: 69.11% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (d03b58e) compared to base (5a4b69a).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1752      +/-   ##
==========================================
+ Coverage   69.09%   69.11%   +0.02%     
==========================================
  Files          23       23              
  Lines        2475     2477       +2     
  Branches      586      588       +2     
==========================================
+ Hits         1710     1712       +2     
  Misses        651      651              
  Partials      114      114              
Impacted Files Coverage Δ
src/util/saveArticles.ts 82.27% <ø> (ø)
src/Templates.ts 100.00% <100.00%> (ø)
src/util/misc.ts 72.09% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kelson42
Copy link
Collaborator

@pavel-karatsiuba Please put a PR description

Copy link
Collaborator

@kelson42 kelson42 left a comment

Choose a reason for hiding this comment

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

LGTM

@kelson42 kelson42 merged commit f4644ac into main Jan 26, 2023
@kelson42 kelson42 deleted the remove-inline-javascript branch January 26, 2023 18:22
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.

Remove inline javascript to comply with some CSP
2 participants