diff options
| author | Caleb <caleb.mabry.15@cnu.edu> | 2022-09-09 18:12:48 -0400 |
|---|---|---|
| committer | Caleb <caleb.mabry.15@cnu.edu> | 2022-09-09 18:12:48 -0400 |
| commit | 1e3f34e03c9dd8fda7e2b24e4533e23fcb7e1de7 (patch) | |
| tree | e3643914dd4da866a9c9600e4eacc0d8feee7be1 /webAO/client/isLowMemory.ts | |
| parent | 09a23ea9d7ee37d8e2dfb036786c41ce37496c51 (diff) | |
Moved more functions out of client
Diffstat (limited to 'webAO/client/isLowMemory.ts')
| -rw-r--r-- | webAO/client/isLowMemory.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webAO/client/isLowMemory.ts b/webAO/client/isLowMemory.ts new file mode 100644 index 0000000..caa6784 --- /dev/null +++ b/webAO/client/isLowMemory.ts @@ -0,0 +1,10 @@ +import { setOldLoading } from '../client' +export const isLowMemory = () => { + if ( + /webOS|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|PlayStation|Nintendo|Opera Mini/i.test( + navigator.userAgent + ) + ) { + setOldLoading(true); + } +} |
