Skip to content

Commit 9067726

Browse files
committed
better validation for chromebook desktop
1 parent 2868c1b commit 9067726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export function getDeviceInfo() {
167167
const { type } = browser.getPlatform()
168168

169169
return {
170-
isMobile: type !== 'desktop',
170+
isMobile: type ? type !== 'desktop' : window.innerWidth < 600,
171171
os: name
172172
}
173173
}

0 commit comments

Comments
 (0)