Skip to content

Commit

Permalink
Deployed 878679a with MkDocs version: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark van Dijk committed Oct 8, 2024
1 parent d9df649 commit 3b5d576
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/script.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
document.addEventListener("DOMContentLoaded", function () {
// Get the query string from the URL
const urlParams = new URLSearchParams(window.location.search);

// Check if the 'env' parameter exists and if its value is 'dialog'
if (urlParams.get("env") === "dialog") {
// Check if we're in an iFrame (or any frame)
if (window.parent !== window) {
// Add the class 'ic-env--dialog' to the <html> element
document.documentElement.classList.add("ic-env--dialog");
}
Expand Down

0 comments on commit 3b5d576

Please sign in to comment.