Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Sep 5, 2024
1 parent 3f7b0c2 commit 62d9cba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-actors-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro-vtbot': patch
---

Fixes a bug where the Inspection Chamber claims to be out of order.
2 changes: 0 additions & 2 deletions devToolbar/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,12 @@ export default defineToolbarApp({
}
app.onToggled((options) => {
if (options.state) {
return;
const me = document.querySelector('astro-dev-toolbar')!
.shadowRoot!.querySelector('astro-dev-toolbar-app-canvas[data-app-id="vtbot"]')!
.shadowRoot!;
const status = me.querySelector<HTMLSpanElement>('#inspection-chamber-status')!;
const button = me.querySelector<HTMLButtonElement>('#inspection-chamber-button')!;

return;
if (!document.startViewTransition) {
status.textContent = 'Your browser does not support view transitions. You notice a little sign near the power button of The Chamber:';
button.textContent = 'Out of Order';
Expand Down

0 comments on commit 62d9cba

Please sign in to comment.