Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

271 B
Raw Blame
export function isAppleDevice() {
  return /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)
}

export function getPlatformSpecialKey() {
  return isAppleDevice() ? "⌘" : "Ctrl"
}

export function getPlatformAlternateKey() {
  return isAppleDevice() ? "⌥" : "Alt"
}