mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-30 02:18:29 +00:00
web/device: add supports.multithreading
This commit is contained in:
parent
d25a730768
commit
b2c5c42ae3
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user