zeroMN's picture
Upload 517 files
8d88d9b verified
raw
history blame contribute delete
211 Bytes
// Approximate width from which we disable autofocus
const TABLET_VIEWPORT_WIDTH = 768;
export function isDesktop(window: Window) {
const { innerWidth } = window;
return innerWidth > TABLET_VIEWPORT_WIDTH;
}