mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-12 03:28:45 +00:00
chore: clean up places I forced things in testing
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -13,21 +13,20 @@ interface ProcessOptions {
|
||||
const getHardwareConcurrency = () =>
|
||||
navigator.hardwareConcurrency !== undefined ? navigator.hardwareConcurrency : 1;
|
||||
|
||||
// // https://stackoverflow.com/questions/47879864/how-can-i-check-if-a-browser-supports-webassembly
|
||||
// const isWASMSupported = (() => {
|
||||
// try {
|
||||
// if (typeof WebAssembly === "object"
|
||||
// && typeof WebAssembly.instantiate === "function") {
|
||||
// const module = new WebAssembly.Module(Uint8Array.of(0x0, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00));
|
||||
// if (module instanceof WebAssembly.Module)
|
||||
// return new WebAssembly.Instance(module) instanceof WebAssembly.Instance;
|
||||
// }
|
||||
// } catch (e) {
|
||||
// return false;
|
||||
// }
|
||||
// return false;
|
||||
// })();
|
||||
const isWASMSupported = false;
|
||||
// https://stackoverflow.com/questions/47879864/how-can-i-check-if-a-browser-supports-webassembly
|
||||
const isWASMSupported = (() => {
|
||||
try {
|
||||
if (typeof WebAssembly === "object"
|
||||
&& typeof WebAssembly.instantiate === "function") {
|
||||
const module = new WebAssembly.Module(Uint8Array.of(0x0, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00));
|
||||
if (module instanceof WebAssembly.Module)
|
||||
return new WebAssembly.Instance(module) instanceof WebAssembly.Instance;
|
||||
}
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
})();
|
||||
|
||||
export default function process(
|
||||
options: ProcessOptions,
|
||||
|
||||
Reference in New Issue
Block a user