Skip to content

Commit

Permalink
last attempt for .NET 8 on Safari 12.x
Browse files Browse the repository at this point in the history
  • Loading branch information
LZ-Jason-Marckel committed Feb 25, 2024
1 parent 9cc2c3b commit 4b4c6ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Client/BlazorBingo.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<!-- needed for .NET 7 / 8 JS interop API -->
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!-- workaround for older versions of IOS devices which lack SIMD support -->
<RunAOTCompilation>false</RunAOTCompilation>
<!--<RunAOTCompilation>false</RunAOTCompilation>-->
<WasmEnableSIMD>false</WasmEnableSIMD>
<!-- reduce output size -->
<BlazorEnableTimeZoneSupport>false</BlazorEnableTimeZoneSupport>
Expand Down
7 changes: 5 additions & 2 deletions Client/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@
</div>
<!-- workaround for IOS -->
<!--<script>var Module;</script>-->

<!--<script type="module">
import jsbi from 'https://cdn.jsdelivr.net/npm/jsbi@4.3.0/+esm'
</script>-->

<!--
https://github.com/dotnet/runtime/blob/main/src/mono/wasm/features.md
https://www.jsdelivr.com/package/npm/jsbi
https://github.com/GoogleChromeLabs/jsbi/tree/main
-->
<script type="module">
import * as JSBI from 'https://cdn.jsdelivr.net/npm/jsbi@4.3.0/dist/jsbi-umd.min.js'
</script>
Expand Down
2 changes: 2 additions & 0 deletions Client/wwwroot/script/BigInt64ArrayPolyfill.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// https://github.com/ivanrhsosa/sample-onnx/blob/main/shim.js

// Failed to start platform. Reaseon: Error: Assert failed: This browser/engine doesn't support BigInt64Array API. Please use a modern version. See also https://aka.ms/dotnet-wasm-features

// Description: This file is used to shim the global BigInt64Array objects
'use strict';

Expand Down

0 comments on commit 4b4c6ea

Please sign in to comment.