src/lib/utils.js
// The same Wasm test that is used in PSPDFKit for Web
The same Wasm test that is used in PSPDFKit for Web
The same Wasm test that is used in PSPDFKit for Web
function isWasmSupported() {
  try {
    if (
      /iPad|iPhone|iPod/.test(navigator.userAgent) &&
      /11_2_\d+/.test(navigator.userAgent)
    ) {
      return false;
    }
  } catch (_) {
  }
  return (
    typeof window.WebAssembly === "object" &&
    typeof window.WebAssembly.instantiate === "function"
  );
}
function isWasmSupported ( ) { try { if ( / iPad|iPhone|iPod / . test ( navigator . userAgent ) && / 11_2_\d+ / . test ( navigator . userAgent ) ) { return false ; } } catch ( _ ) { } return ( typeof window . WebAssembly === "object" && typeof window . WebAssembly . instantiate === "function" ) ; }
The same Wasm test that is used in PSPDFKit for Web
The same Wasm test that is used in PSPDFKit for Web
// iOS ~11.2.2 has a known Wasm problem. // See: https://github.com/kripken/emscripten/issues/6042 // In case of an error, we simply continue to the regular feature check