Skip to content

best way to save what you love

web/device: add supports.multithreading

wukkob2c5c42ae39b
diff --git a/web/src/lib/device.ts b/web/src/lib/device.ts
index 417ad945..ad927c28 100644
--- a/web/src/lib/device.ts
+++ b/web/src/lib/device.ts
@@ -28,6 +28,7 @@ const device = {
directDownload: false,
haptics: false,
defaultLocalProcessing: false,
+ multithreading: false,
},
userAgent: "sveltekit server",
}
@@ -85,6 +86,7 @@ if (browser) {
// enable local processing by default everywhere but android chrome
defaultLocalProcessing: !(device.is.android && device.browser.chrome),
+ multithreading: !iOS || (iOS && iosVersion >= 18),
};
device.userAgent = navigator.userAgent;