Partially fixes issue #3256 by updating SASS syntax in main SCSS files. To fully address the issue, FontAwesome should be updated to `v7.x` and Tabler to `v3.30` or higher (see Tabler fix [here](https://github.com/tabler/tabler-icons/pull/1256)), where the SCSS has been fixed. --------- Signed-off-by: George Araújo <george.gcac@gmail.com> Co-authored-by: George Araújo <george.gcac@gmail.com>
12 lines
526 B
JavaScript
12 lines
526 B
JavaScript
// Check if the user is on a Mac and update the shortcut key for search accordingly
|
|
document.addEventListener("readystatechange", () => {
|
|
if (document.readyState === "interactive") {
|
|
let isMac = navigator.platform.toUpperCase().indexOf("MAC") >= 0;
|
|
let shortcutKeyElement = document.querySelector("#search-toggle .nav-link");
|
|
if (shortcutKeyElement && isMac) {
|
|
// use the unicode for command key
|
|
shortcutKeyElement.innerHTML = '⌘ k <i class="fa-solid fa-magnifying-glass"></i>';
|
|
}
|
|
}
|
|
});
|