From 9541d4c673cb133999164724fa7cbc4f4e863121 Mon Sep 17 00:00:00 2001 From: Nicholas Jitkoff Date: Thu, 30 Jun 2022 08:50:57 -0700 Subject: [PATCH] Disable forwarding for framed content --- docs/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/index.js b/docs/index.js index 2a5cccf..223ecdf 100644 --- a/docs/index.js +++ b/docs/index.js @@ -39,6 +39,8 @@ } window.showLoader = showLoader; + // Document Attribute Setters + function setThemeColor(color) { let el = document.getElementById("themeColor"); if (!el) { @@ -158,7 +160,7 @@ var fragment = window.location.hash.substring(1); - if (fragment.length < 3) { + if (fragment.length < 3 && !isFramed) { return location.href = "/edit"; }