temp fix
This commit is contained in:
parent
8f9f220c40
commit
8816d79438
2 changed files with 7 additions and 7 deletions
|
@ -29,7 +29,7 @@ stockfish.dispose();
|
|||
A complete Example can be found at [stockfish_chess_engine](https://github.com/loloof64/StockfishChessEngineFlutter).
|
||||
|
||||
## Web support
|
||||
Web support is currently experimental. It uses a version of stockfish compiled with [emscripten](https://emscripten.org/).
|
||||
Web support is currently experimental and currently requires manuly adding assets. It uses a version of stockfish compiled with [emscripten](https://emscripten.org/).
|
||||
|
||||
In order to make multithreading available, the site must run in a secure environment.
|
||||
The following headers must be set for this:
|
||||
|
|
12
pubspec.yaml
12
pubspec.yaml
|
@ -45,12 +45,12 @@ flutter:
|
|||
ffiPlugin: true
|
||||
web:
|
||||
# -------------------
|
||||
assets:
|
||||
- web/js_bindings.js
|
||||
- web/stockfish_data.bin
|
||||
- web/flutter_stockfish_plugin.js
|
||||
- web/flutter_stockfish_plugin.wasm
|
||||
- web/flutter_stockfish_plugin.worker.js
|
||||
#assets:
|
||||
# - web/js_bindings.js
|
||||
# - web/stockfish_data.bin
|
||||
# - web/flutter_stockfish_plugin.js
|
||||
# - web/flutter_stockfish_plugin.wasm
|
||||
# - web/flutter_stockfish_plugin.worker.js
|
||||
# To add assets to your plugin package, add an assets section, like this:
|
||||
# assets:
|
||||
# - images/a_dot_burr.jpeg
|
||||
|
|
Loading…
Reference in a new issue