aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarvin Borner2024-04-09 23:40:07 +0200
committerMarvin Borner2024-04-09 23:40:07 +0200
commitfc60c2f071214c9f052c5b7bb9f7fc00327ace09 (patch)
treea9cce04f34f58ebcbb2d5f675f69876fdf0ac4d0
parent6e763fb73bd3292fbbd1f9bfdccc09af5f730938 (diff)
TIL AppleWebKit is in many useragents
-rw-r--r--index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.html b/index.html
index 5523cf2..369bf0c 100644
--- a/index.html
+++ b/index.html
@@ -139,10 +139,11 @@ qsplit = \(0 \\\\\((((0 ((4 \((((0 \\1) \\1) \\1) \\1)) \((((0 \\0) \\0) \\0) \\
<script src="main.js"></script>
<script charset="utf-8">
let useWebGL = true;
- const isWeird = /iPhone|iPad|iPod|Android|AppleWebKit/i.test(
+ const isPhone = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
+ const isSafari = /^((?!chrome|android).)*safari/i.test(
navigator.userAgent,
);
- if (isWeird) {
+ if (isPhone || isSafari) {
useWebGL = false;
MAXRES = 3;
}