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

Exclude routes/print mode #774

Open
RyanMulready opened this issue Jan 16, 2025 · 1 comment
Open

Exclude routes/print mode #774

RyanMulready opened this issue Jan 16, 2025 · 1 comment

Comments

@RyanMulready
Copy link

We are using the Vite Plugin installation method and have a use case where certain routes are for printing only(no interaction); details/uuid/print. On these routes the dev tool still attaches itself resulting in the icon showing up.

It's a minor inconvenience but I was surprised there wasn't some way of handling this. Our current solution is to just hide it using CSS

@media print {
  #__vue-devtools-container__ {
    display: none;
  }
}
@webfansplz
Copy link
Member

I tried to reproduce this case but couldn't. In fact, we already have similar handling for this case in the code. See:

https://github.com/vuejs/devtools/blob/main/packages/overlay/src/App.vue#L309

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

No branches or pull requests

2 participants