File size: 211 Bytes
09eb258
 
 
 
 
 
 
1
2
3
4
5
6
7
8
// 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;
}