Skip to content

Commit

Permalink
fix kapa and search errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lyleschemmerling committed Nov 1, 2023
1 parent fb07d33 commit 3d75414
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 5 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions astro/src/components/Head.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const isProd = import.meta.env.PROD as boolean;
<link rel="stylesheet" href="/css/light.min.css"/>
<link rel="stylesheet" href="/css/regular.min.css"/>
<script src="/js/CopyToClipboard-0.2.2.js" type="text/javascript"></script>
<script src="/js/Search-0.1.2.js" type="text/javascript"></script>
<script src="/js/Search-0.1.3.js" type="text/javascript"></script>
<script src="/js/ScrollSpy-0.1.0.js" type="text/javascript"></script>
{ hasDark && <script src="/js/ThemeSelector-0.1.0.js" type="text/javascript"></script> }
<script src="/js/Visibility-0.1.1.js" type="text/javascript"></script>
Expand Down Expand Up @@ -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"
></script>
</head>

0 comments on commit 3d75414

Please sign in to comment.