web/device: add supports.multithreading

This commit is contained in:
wukko 2025-06-29 13:42:01 +06:00
parent d25a730768
commit b2c5c42ae3
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -28,6 +28,7 @@ const device = {
directDownload: false, directDownload: false,
haptics: false, haptics: false,
defaultLocalProcessing: false, defaultLocalProcessing: false,
multithreading: false,
}, },
userAgent: "sveltekit server", userAgent: "sveltekit server",
} }
@ -85,6 +86,7 @@ if (browser) {
// enable local processing by default everywhere but android chrome // enable local processing by default everywhere but android chrome
defaultLocalProcessing: !(device.is.android && device.browser.chrome), defaultLocalProcessing: !(device.is.android && device.browser.chrome),
multithreading: !iOS || (iOS && iosVersion >= 18),
}; };
device.userAgent = navigator.userAgent; device.userAgent = navigator.userAgent;