Skip to content

Commit

Permalink
add snap class on snap param
Browse files Browse the repository at this point in the history
  • Loading branch information
narthur committed Mar 20, 2024
1 parent c42d8f4 commit 14625c8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/scripts/snap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Purpose: Improve reliability of puppeteer diffing

const urlParams = new URLSearchParams(window.location.search);

if (urlParams.has("snap")) {
const body = document.querySelector("body");
body?.classList.add("snap");
}

0 comments on commit 14625c8

Please sign in to comment.