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: prevent printing via browser #1045

Closed
wants to merge 1 commit into from
Closed

Conversation

priyajeet
Copy link
Contributor

when there is no download permission. This still does not prevent other ways to print/get data.

when there is no download permission. This still does not prevent other ways to print/get data.
@boxcla
Copy link

boxcla commented Jul 19, 2019

Verified that @priyajeet has signed the CLA. Thanks for the pull request!

${SELECTOR_BOX_PREVIEW},
${SELECTOR_BOX_PREVIEW_CONTAINER},
${SELECTOR_BOX_PREVIEW_CONTENT} {
display: none !important;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we include this rule in a class in the base stylesheet and add the class to the root element as needed?

* @return {void}
*/
preventBrowserPrinting() {
const sheet = document.styleSheets[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we create a style element and insert as the first stylesheet?

@jstoffan
Copy link
Collaborator

Closing for now, as I think this is partially addressed by #1076. Feel free to re-open if needed.

@jstoffan jstoffan closed this Sep 24, 2019
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.

4 participants