From 3b5d57620feec5c88a0b2b057fab4b1f3ddb3dfa Mon Sep 17 00:00:00 2001 From: Mark van Dijk Date: Tue, 8 Oct 2024 15:11:48 +0200 Subject: [PATCH] Deployed 878679a with MkDocs version: 1.6.1 --- scripts/script.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/script.js b/scripts/script.js index c628a78..ab711fc 100644 --- a/scripts/script.js +++ b/scripts/script.js @@ -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 element document.documentElement.classList.add("ic-env--dialog"); }