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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: clean up the default app, add CSP #13437

Merged
merged 3 commits into from Jul 17, 2018

Conversation

MarshallOfSound
Copy link
Member

I got fed up seeing the CSP warnings when launching the default app 馃槃

This PR:

  • Adds a strict CSP
  • Removes the dependency on the external octicons font
  • Moves the inline styles to a style sheet

@MarshallOfSound MarshallOfSound requested review from a team June 26, 2018 06:20
tools/js2asar.py Outdated
@@ -24,6 +24,10 @@ def main():
def copy_files(source_files, output_dir):
for source_file in source_files:
output_path = os.path.join(output_dir, source_file)
# Files that aren't in the default_app folder need to be put inside
# the temp one we are making so they end up in the ASAR
if source_file[:12] != "default_app/":
Copy link
Contributor

Choose a reason for hiding this comment

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

!source_file.startswith("default_app/") would be a little cleaner, I think.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated 馃憤

@codebytere
Copy link
Member

Do we want to commit the package lock here?

@MarshallOfSound
Copy link
Member Author

@codebytere Yeah, an extra dependency was added so the lock was updated 馃憤

Copy link
Contributor

@zeke zeke left a comment

Choose a reason for hiding this comment

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

Looks good to me 馃憤

@MarshallOfSound MarshallOfSound merged commit 12fcac5 into master Jul 17, 2018
@MarshallOfSound MarshallOfSound deleted the clean-up-default-app branch July 17, 2018 00:27
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.

None yet

4 participants