aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/isLowMemory.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client/isLowMemory.ts')
-rw-r--r--webAO/client/isLowMemory.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/webAO/client/isLowMemory.ts b/webAO/client/isLowMemory.ts
index caa6784..8a8bd48 100644
--- a/webAO/client/isLowMemory.ts
+++ b/webAO/client/isLowMemory.ts
@@ -1,10 +1,10 @@
-import { setOldLoading } from '../client'
+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);
- }
-}
+ if (
+ /webOS|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|PlayStation|Nintendo|Opera Mini/i.test(
+ navigator.userAgent,
+ )
+ ) {
+ setOldLoading(true);
+ }
+};