Skip to content

Commit

Permalink
require stockfish 16+ wasms for puzzle reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
schlawg committed Nov 18, 2024
1 parent 873c708 commit 63686dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/puzzle/src/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export default class Report {
// the `mate` key theme is not sent, as it is considered redubant with `mateInX`
ctrl.data.puzzle.themes.some((t: ThemeKey) => t.toLowerCase().includes('mate')) ||
// if the user has chosen to hide the dialog less than a week ago
this.tsHideReportDialog() > Date.now() - 1000 * 3600 * 24 * 7
this.tsHideReportDialog() > Date.now() - 1000 * 3600 * 24 * 7 ||
// dynamic import from web worker feature is shared by all stockfish 16+ WASMs
!ctrl.ceval.engines.active?.requires?.includes('dynamicImportFromWorker')
)
return;
const node = ctrl.node;
Expand Down

0 comments on commit 63686dd

Please sign in to comment.