From df61b0a69a5bd6f0a9eb7a594e094b678523d07b Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Thu, 1 Aug 2024 13:45:14 +0100 Subject: [PATCH] feat: Add `#debug` flag to standalone spotlight web UI This enables the `debug` flag on Spotlight init for debugging. --- .changeset/loud-melons-rescue.md | 5 +++++ packages/spotlight/src/index.html | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/loud-melons-rescue.md diff --git a/.changeset/loud-melons-rescue.md b/.changeset/loud-melons-rescue.md new file mode 100644 index 000000000..f4f97eaf3 --- /dev/null +++ b/.changeset/loud-melons-rescue.md @@ -0,0 +1,5 @@ +--- +'@spotlightjs/spotlight': minor +--- + +Add `#debug` flag to standalone Spotlight web UI diff --git a/packages/spotlight/src/index.html b/packages/spotlight/src/index.html index bb92c8b7c..af4d55da9 100644 --- a/packages/spotlight/src/index.html +++ b/packages/spotlight/src/index.html @@ -23,6 +23,7 @@ Spotlight.init({ fullPage: true, injectImmediately: true, + debug: document.URL.toLowerCase().endsWith('#debug'), showTriggerButton: false, });