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

Fix/unlisted posts privacy #138

Merged
merged 3 commits into from
Apr 5, 2021
Merged

Conversation

daianaszwimer
Copy link
Contributor

No description provided.

@daianaszwimer daianaszwimer marked this pull request as draft April 5, 2021 16:05
@daianaszwimer daianaszwimer marked this pull request as ready for review April 5, 2021 19:36
@daianaszwimer daianaszwimer requested a review from moughxyz April 5, 2021 19:36
@@ -93,6 +93,12 @@
</script>
<!-- End Piwik Code -->

<script type="text/javascript">
if("<%= ENV["RAILS_ENV"] %>" !== "development" && typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__ === "object") {
window.__REACT_DEVTOOLS_GLOBAL_HOOK__.inject = function () {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This disables the React Dev Tools on any environment that is not "development" facebook/react-devtools#191 (comment)

@daianaszwimer daianaszwimer merged commit 59f6d33 into develop Apr 5, 2021
@daianaszwimer daianaszwimer deleted the fix/unlisted_posts_privacy branch April 5, 2021 20:13
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.

2 participants