mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-18 06:53:41 +08:00
fix build bug
This commit is contained in:
@@ -967,7 +967,9 @@ export function DeleteImageButton(props: { deleteImage: () => void }) {
|
||||
}
|
||||
|
||||
export function ShortcutKeyModal(props: { onClose: () => void }) {
|
||||
const isMac = navigator.platform.toUpperCase().indexOf("MAC") >= 0;
|
||||
const isMac =
|
||||
typeof navigator !== "undefined" &&
|
||||
navigator.platform.toUpperCase().indexOf("MAC") >= 0;
|
||||
const shortcuts = [
|
||||
{
|
||||
title: Locale.Chat.ShortcutKey.newChat,
|
||||
|
||||
Reference in New Issue
Block a user