Fix a11y issues #4269

This commit is contained in:
Jason Lin
2022-12-02 18:35:09 +11:00
parent a351f5758a
commit d177acccee
3 changed files with 15 additions and 6 deletions
+2
View File
@@ -39,3 +39,5 @@ export const isIpad = platform === 'iPad';
export const isIphone = platform === 'iPhone';
export const isWindows = ['Windows', 'Win16', 'Win32', 'WinCE'].includes(platform);
export const isLinux = platform.indexOf('Linux') >= 0;
// Note that when this is true, isLinux will also be true.
export const isChromeOS = /\bCrOS\b/.test(userAgent);