UNPKG

@guruhotel/aura-hooks

Version:

🪝 Hooks library designed by the Guruhotel team for Aura UI

1 lines 439 B
exports.__esModule=!0,exports.useOS=function(){if("undefined"!=typeof window)return function(){const{userAgent:n}=window.navigator,i=/(Win32)|(Win64)|(Windows)|(WinCE)/i,e=/(iPhone)|(iPad)|(iPod)/i;if(/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(n))return"macos";if(e.test(n))return"ios";if(i.test(n))return"windows";if(/Android/i.test(n))return"android";if(/Linux/i.test(n))return"linux";return"undetermined"}();return"undetermined"};