Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

322 B
Raw Blame
/**
 * Runtime platform detection for shortcuts.
 *
 * Deliberately not the IS_MACOS build constant: the same bundle also runs in a
 * plain browser, where the host OS is only known from the user agent.
 */
export const isMac =
  typeof navigator !== 'undefined' &&
  navigator.userAgent.toUpperCase().indexOf('MAC') >= 0