From 3d75414fdbf3f6cba887293b17a3180fa855b51b Mon Sep 17 00:00:00 2001 From: Lyle Schemmerling Date: Wed, 1 Nov 2023 11:10:34 -0600 Subject: [PATCH] fix kapa and search errors --- .../public}/img/android-icon-144x144.png | Bin .../public}/img/android-icon-192x192.png | Bin .../public}/img/android-icon-36x36.png | Bin .../public}/img/android-icon-48x48.png | Bin .../public}/img/android-icon-72x72.png | Bin .../public}/img/android-icon-96x96.png | Bin .../public/js/{Search-0.1.2.js => Search-0.1.3.js} | 8 +++++--- astro/src/components/Head.astro | 4 ++-- 8 files changed, 7 insertions(+), 5 deletions(-) rename {site/assets => astro/public}/img/android-icon-144x144.png (100%) rename {site/assets => astro/public}/img/android-icon-192x192.png (100%) rename {site/assets => astro/public}/img/android-icon-36x36.png (100%) rename {site/assets => astro/public}/img/android-icon-48x48.png (100%) rename {site/assets => astro/public}/img/android-icon-72x72.png (100%) rename {site/assets => astro/public}/img/android-icon-96x96.png (100%) rename astro/public/js/{Search-0.1.2.js => Search-0.1.3.js} (96%) diff --git a/site/assets/img/android-icon-144x144.png b/astro/public/img/android-icon-144x144.png similarity index 100% rename from site/assets/img/android-icon-144x144.png rename to astro/public/img/android-icon-144x144.png diff --git a/site/assets/img/android-icon-192x192.png b/astro/public/img/android-icon-192x192.png similarity index 100% rename from site/assets/img/android-icon-192x192.png rename to astro/public/img/android-icon-192x192.png diff --git a/site/assets/img/android-icon-36x36.png b/astro/public/img/android-icon-36x36.png similarity index 100% rename from site/assets/img/android-icon-36x36.png rename to astro/public/img/android-icon-36x36.png diff --git a/site/assets/img/android-icon-48x48.png b/astro/public/img/android-icon-48x48.png similarity index 100% rename from site/assets/img/android-icon-48x48.png rename to astro/public/img/android-icon-48x48.png diff --git a/site/assets/img/android-icon-72x72.png b/astro/public/img/android-icon-72x72.png similarity index 100% rename from site/assets/img/android-icon-72x72.png rename to astro/public/img/android-icon-72x72.png diff --git a/site/assets/img/android-icon-96x96.png b/astro/public/img/android-icon-96x96.png similarity index 100% rename from site/assets/img/android-icon-96x96.png rename to astro/public/img/android-icon-96x96.png diff --git a/astro/public/js/Search-0.1.2.js b/astro/public/js/Search-0.1.3.js similarity index 96% rename from astro/public/js/Search-0.1.2.js rename to astro/public/js/Search-0.1.3.js index 4069f6c6c9..a598b56d64 100644 --- a/astro/public/js/Search-0.1.2.js +++ b/astro/public/js/Search-0.1.3.js @@ -25,9 +25,11 @@ class Search { document.addEventListener('keyup', event => this.#handleKeyUp(event)); this.#handleResults({}); - this.#isMac = window.navigator.platform === 'MacIntel'; - this.#altKey = this.#isMac ? 'Meta' : 'Alt'; - this.#searchKeyHint.innerText = this.#isMac ? '⌘K' : 'Alt+K'; + if (this.#searchKeyHint) { + this.#isMac = window.navigator.platform === 'MacIntel'; + this.#altKey = this.#isMac ? 'Meta' : 'Alt'; + this.#searchKeyHint.innerText = this.#isMac ? '⌘K' : 'Alt+K'; + } } closeSearch() { diff --git a/astro/src/components/Head.astro b/astro/src/components/Head.astro index 261216e5a2..37038f8811 100644 --- a/astro/src/components/Head.astro +++ b/astro/src/components/Head.astro @@ -19,7 +19,7 @@ const isProd = import.meta.env.PROD as boolean; - + { hasDark && } @@ -71,7 +71,7 @@ src="https://widget.kapa.ai/kapa-widget.bundle.js" data-website-id="26ad3b7e-7d94-491c-ab54-95712d1fafee" data-project-name="FusionAuth" data-project-color="#475569" -data-project-logo="https://fusionauth.io/assets/img/android-icon-144x144.png" +data-project-logo="/img/android-icon-144x144.png" >